typedef struct _node btree_node;
struct _node
{
int* keys;
btree_node* children;
int count_keys;
int is_leaf;
btree_node* parent;
int position_in_parent;
};
I am getting this error:
error: no match for ‘operator=’ in ‘*(node->_node::children + ((long unsigned int)(((long unsigned int)(i + degree)) * 40ul))) = 0l’
note: candidates are: _node& _node::operator=(const _node&)
for this line of code:
node->children[i+degree] = NULL;
I failed to explicate the reason behind this.
Note: I used g++ to compile this. How to change things to compile without error for g++?