Giter VIP home page Giter VIP logo

Comments (1)

MayankSur avatar MayankSur commented on August 22, 2024

I managed to change the types correctly, but am still running into this error:

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:874:42: error: use of deleted function ‘std::array<BwTree::KeyValue<unsigned int, unsigned int>, 100>::array()’
std::array<KeyValue<Key, Data>, 100> deltaInsertRecords;
^~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/7/tuple:39:0,
from /usr/include/c++/7/unordered_map:41,
from /home/mayank/Documents/BW-Trees/src/bwtree.cpp:1:
/usr/include/c++/7/array:94:12: note: ‘std::array<BwTree::KeyValue<unsigned int, unsigned int>, 100>::array()’ is implicitly deleted because the default definition would be ill-formed:
struct array
^~~~~
/usr/include/c++/7/array:94:12: error: no matching function for call to ‘BwTree::KeyValue<unsigned int, unsigned int>::KeyValue()’
In file included from /home/mayank/Documents/BW-Trees/src/bwtree.cpp:9:0:
/home/mayank/Documents/BW-Trees/src/nodes.hpp:52:9: note: candidate: BwTree::KeyValue<Key, Data>::KeyValue(const Key&, const Data
const&) [with Key = unsigned int; Data = unsigned int]
KeyValue(const Key &key, const Data const & data) : key(key), data(data) { }
^~~~~~~~
/home/mayank/Documents/BW-Trees/src/nodes.hpp:52:9: note: candidate expects 2 arguments, 0 provided
/home/mayank/Documents/BW-Trees/src/nodes.hpp:48:12: note: candidate: constexpr BwTree::KeyValue<unsigned int, unsigned int>::KeyValue(const BwTree::KeyValue<unsigned int, unsigned int>&)
struct KeyValue {
^~~~~~~~
/home/mayank/Documents/BW-Trees/src/nodes.hpp:48:12: note: candidate expects 1 argument, 0 provided
/home/mayank/Documents/BW-Trees/src/bwtree.cpp: 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 = long unsigned int]’:

from bwtree.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.