In file included from /usr/include/c++/7/unordered_map:41:0,
from engine.cpp:3,
from test_engine.cpp:3:
/usr/include/c++/7/tuple: In instantiation of ‘std::pair<_T1, _T2>::pair(std::tuple<_Args1 ...>&, std::tuple<_Args2 ...>&, std::_Index_tuple<_Indexes1 ...>, std::_Index_tuple<_Indexes2 ...>) [with _Args1 = {Node* const&}; long unsigned int ..._Indexes1 = {0}; _Args2 = {}; long unsigned int ..._Indexes2 = {}; _T1 = Node* const; _T2 = NodeTask]’:
/usr/include/c++/7/tuple:1641:63: required from ‘std::pair<_T1, _T2>::pair(std::piecewise_construct_t, std::tuple<_Args1 ...>, std::tuple<_Args2 ...>) [with _Args1 = {Node* const&}; _Args2 = {}; _T1 = Node* const; _T2 = NodeTask]’
/usr/include/c++/7/ext/new_allocator.h:136:4: required from ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::pair<Node* const, NodeTask>; _Args = {const std::piecewise_construct_t&, std::tuple<Node* const&>, std::tuple<>}; _Tp = std::pair<Node* const, NodeTask>]’
/usr/include/c++/7/bits/alloc_traits.h:475:4: required from ‘static void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = std::pair<Node* const, NodeTask>; _Args = {const std::piecewise_construct_t&, std::tuple<Node* const&>, std::tuple<>}; _Tp = std::pair<Node* const, NodeTask>; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<std::pair<Node* const, NodeTask> >]’
/usr/include/c++/7/bits/hashtable_policy.h:2066:37: required from ‘std::__detail::_Hashtable_alloc<_NodeAlloc>::__node_type* std::__detail::_Hashtable_alloc<_NodeAlloc>::_M_allocate_node(_Args&& ...) [with _Args = {const std::piecewise_construct_t&, std::tuple<Node* const&>, std::tuple<>}; _NodeAlloc = std::allocator<std::__detail::_Hash_node<std::pair<Node* const, NodeTask>, false> >; std::__detail::_Hashtable_alloc<_NodeAlloc>::__node_type = std::__detail::_Hash_node<std::pair<Node* const, NodeTask>, false>]’
/usr/include/c++/7/bits/hashtable_policy.h:725:8: required from ‘std::__detail::_Map_base<_Key, _Pair, _Alloc, std::__detail::_Select1st, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits, true>::mapped_type& std::__detail::_Map_base<_Key, _Pair, _Alloc, std::__detail::_Select1st, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits, true>::operator[](const key_type&) [with _Key = Node*; _Pair = std::pair<Node* const, NodeTask>; _Alloc = std::allocator<std::pair<Node* const, NodeTask> >; _Equal = std::equal_to<Node*>; _H1 = std::hash<Node*>; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<false, false, true>; std::__detail::_Map_base<_Key, _Pair, _Alloc, std::__detail::_Select1st, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits, true>::mapped_type = NodeTask; std::__detail::_Map_base<_Key, _Pair, _Alloc, std::__detail::_Select1st, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits, true>::key_type = Node*]’
/usr/include/c++/7/bits/unordered_map.h:973:20: required from ‘std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](const key_type&) [with _Key = Node*; _Tp = NodeTask; _Hash = std::hash<Node*>; _Pred = std::equal_to<Node*>; _Alloc = std::allocator<std::pair<Node* const, NodeTask> >; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type = NodeTask; std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::key_type = Node*]’
engine.cpp:68:42: required from here
/usr/include/c++/7/tuple:1652:70: error: no matching function for call to ‘NodeTask::NodeTask()’
second(std::forward<_Args2>(std::get<_Indexes2>(__tuple2))...)
^
In file included from test_engine.cpp:3:0:
engine.cpp:35:5: note: candidate: NodeTask::NodeTask(Node*, const std::vector<double>&)
NodeTask(Node* n, const std::vector<double>& grad_input) : node(n), gradInput(grad_input) {}
^~~~~~~~
engine.cpp:35:5: note: candidate expects 2 arguments, 0 provided
engine.cpp:29:7: note: candidate: NodeTask::NodeTask(const NodeTask&)
class NodeTask {
^~~~~~~~
engine.cpp:29:7: note: candidate expects 1 argument, 0 provided
engine.cpp:29:7: note: candidate: NodeTask::NodeTask(NodeTask&&)
engine.cpp:29:7: note: candidate expects 1 argument, 0 provided```