-
Notifications
You must be signed in to change notification settings - Fork 18
Description
Hi,
I've been having an issue compiling the current files and I've just made a few changes to try and remove the thread information since I wanted to reformat that. However, the issue I keep getting into is the error below:
In instantiation of ‘std::tuple<long unsigned int, long unsigned int> BwTree::Tree<Key, Data>::getConsolidatedLeafData(BwTree::Node<Key, Data>, std::vector<BwTree::KeyValue<Key, Data> >&) [with Key = unsigned int; Data = unsigned int]’:
/home/mayank/Documents/BW-Trees/src/bwtree.cpp:1126:24: required from here
/home/mayank/Documents/BW-Trees/src/bwtree.cpp:892:67: error: cannot convert ‘BwTree::KeyValue<unsigned int, unsigned int>’ to ‘std::array<unsigned int, 100>::value_type {aka unsigned int}’ in assignment
deltaInsertRecords[deltaInsertRecordsCount++] = node1->record;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/home/mayank/Documents/BW-Trees/src/bwtree.cpp:935:43: error: invalid const_cast from type ‘std::array<unsigned int, 100>::pointer {aka unsigned int}’ to type ‘BwTree::KeyValue<unsigned int, unsigned int>*’
KeyValue<Key, Data> *recordsdata[] = {const_cast<KeyValue<Key, Data> *>(deltaInsertRecords.data()), node1->records};
There seems to be an error with regards to the array and I'm wondering how you got around this, it might just be due to my lack of understanding, would be grateful if you could help.
I'm using c++14, and have imported the array container library as well.