Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t.cpp:8:44: warning: unused variable 'node' [-Wunused-variable]
- BOOST_FOREACH (MyList::const_reference node, xs);
- ^
- /usr/include/boost/foreach.hpp:1104:14: note: expanded from macro 'BOOST_FOREACH'
- for (VAR = BOOST_FOREACH_DEREF(COL); !BOOST_FOREACH_ID(_foreach_continue); BOOST_FOREACH_ID(_foreach_continue) = true)
- ^
- /usr/include/boost/foreach.hpp:571:37: error: no matching constructor for initialization of 'boost::intrusive::list<boost::intrusive::list_base_hook<boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>, boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>'
- ::new(this->data.address()) T(t);
- ^ ~
- /usr/include/boost/foreach.hpp:648:51: note: in instantiation of member function 'boost::foreach_detail_::simple_variant<boost::intrusive::list<boost::intrusive::list_base_hook<boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>, boost::intrusive::none, boost::intrusive::none, boost::intrusive::none> >::simple_variant' requested here
- return auto_any<simple_variant<T> >(*rvalue ? simple_variant<T>(t) : simple_variant<T>(&t));
- ^
- t.cpp:8:5: note: in instantiation of function template specialization 'boost::foreach_detail_::contain<boost::intrusive::list<boost::intrusive::list_base_hook<boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>, boost::intrusive::none, boost::intrusive::none, boost::intrusive::none> >' requested here
- BOOST_FOREACH (MyList::const_reference node, xs);
- ^
- /usr/include/boost/foreach.hpp:1097:77: note: expanded from macro 'BOOST_FOREACH'
- if (boost::foreach_detail_::auto_any_t BOOST_FOREACH_ID(_foreach_col) = BOOST_FOREACH_CONTAIN(COL)) {} else \
- ^
- /usr/include/boost/foreach.hpp:1009:5: note: expanded from macro 'BOOST_FOREACH_CONTAIN'
- boost::foreach_detail_::contain( \
- ^
- /usr/include/boost/intrusive/list.hpp:1490:35: note: candidate constructor not viable: 1st argument ('const boost::intrusive::list<boost::intrusive::list_base_hook<boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>, boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>') would lose const qualifier
- BOOST_MOVABLE_BUT_NOT_COPYABLE(list)
- ^
- /usr/include/boost/move/move.hpp:371:7: note: expanded from macro 'BOOST_MOVABLE_BUT_NOT_COPYABLE'
- TYPE(TYPE &);\
- ^
- /usr/include/boost/intrusive/list.hpp:1497:4: note: candidate constructor not viable: no known conversion from 'const boost::intrusive::list<boost::intrusive::list_base_hook<boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>, boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>' to 'const value_traits' (aka 'const boost::intrusive::detail::base_hook_traits<boost::intrusive::list_base_hook<boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>, boost::intrusive::list_node_traits<void *>, 1, boost::intrusive::default_tag, 1>') for 1st argument;
- list(const value_traits &v_traits = value_traits())
- ^
- /usr/include/boost/intrusive/list.hpp:1506:4: note: candidate constructor not viable: no known conversion from 'const boost::intrusive::list<boost::intrusive::list_base_hook<boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>, boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>' to '::boost::rv<list<list_base_hook<none, none, none>, none, none, none>> &' for 1st argument;
- list(BOOST_RV_REF(list) x)
- ^
- /usr/include/boost/intrusive/list.hpp:1502:4: note: candidate constructor template not viable: requires at least 2 arguments, but 1 was provided
- list(Iterator b, Iterator e, const value_traits &v_traits = value_traits())
- ^
- In file included from t.cpp:1:
- /usr/include/boost/foreach.hpp:578:41: error: no matching constructor for initialization of 'boost::intrusive::list<boost::intrusive::list_base_hook<boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>, boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>'
- ::new(this->data.address()) T(*that.get());
- ^ ~~~~~~~~~~~
- /usr/include/boost/foreach.hpp:648:51: note: in instantiation of member function 'boost::foreach_detail_::simple_variant<boost::intrusive::list<boost::intrusive::list_base_hook<boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>, boost::intrusive::none, boost::intrusive::none, boost::intrusive::none> >::simple_variant' requested here
- return auto_any<simple_variant<T> >(*rvalue ? simple_variant<T>(t) : simple_variant<T>(&t));
- ^
- t.cpp:8:5: note: in instantiation of function template specialization 'boost::foreach_detail_::contain<boost::intrusive::list<boost::intrusive::list_base_hook<boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>, boost::intrusive::none, boost::intrusive::none, boost::intrusive::none> >' requested here
- BOOST_FOREACH (MyList::const_reference node, xs);
- ^
- /usr/include/boost/foreach.hpp:1097:77: note: expanded from macro 'BOOST_FOREACH'
- if (boost::foreach_detail_::auto_any_t BOOST_FOREACH_ID(_foreach_col) = BOOST_FOREACH_CONTAIN(COL)) {} else \
- ^
- /usr/include/boost/foreach.hpp:1009:5: note: expanded from macro 'BOOST_FOREACH_CONTAIN'
- boost::foreach_detail_::contain( \
- ^
- /usr/include/boost/intrusive/list.hpp:1490:35: note: candidate constructor not viable: 1st argument ('const boost::intrusive::list<boost::intrusive::list_base_hook<boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>, boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>') would lose const qualifier
- BOOST_MOVABLE_BUT_NOT_COPYABLE(list)
- ^
- /usr/include/boost/move/move.hpp:371:7: note: expanded from macro 'BOOST_MOVABLE_BUT_NOT_COPYABLE'
- TYPE(TYPE &);\
- ^
- /usr/include/boost/intrusive/list.hpp:1497:4: note: candidate constructor not viable: no known conversion from 'const boost::intrusive::list<boost::intrusive::list_base_hook<boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>, boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>' to 'const value_traits' (aka 'const boost::intrusive::detail::base_hook_traits<boost::intrusive::list_base_hook<boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>, boost::intrusive::list_node_traits<void *>, 1, boost::intrusive::default_tag, 1>') for 1st argument;
- list(const value_traits &v_traits = value_traits())
- ^
- /usr/include/boost/intrusive/list.hpp:1506:4: note: candidate constructor not viable: no known conversion from 'const boost::intrusive::list<boost::intrusive::list_base_hook<boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>, boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>' to '::boost::rv<list<list_base_hook<none, none, none>, none, none, none>> &' for 1st argument;
- list(BOOST_RV_REF(list) x)
- ^
- /usr/include/boost/intrusive/list.hpp:1502:4: note: candidate constructor template not viable: requires at least 2 arguments, but 1 was provided
- list(Iterator b, Iterator e, const value_traits &v_traits = value_traits())
- ^
- In file included from t.cpp:1:
- /usr/include/boost/foreach.hpp:259:9: error: no matching constructor for initialization of 'boost::foreach_detail_::simple_variant<boost::intrusive::list<boost::intrusive::list_base_hook<boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>, boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>>'
- : item(t)
- ^ ~
- /usr/include/boost/foreach.hpp:648:12: note: in instantiation of member function 'boost::foreach_detail_::auto_any<boost::foreach_detail_::simple_variant<boost::intrusive::list<boost::intrusive::list_base_hook<boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>, boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>> >::auto_any' requested here
- return auto_any<simple_variant<T> >(*rvalue ? simple_variant<T>(t) : simple_variant<T>(&t));
- ^
- t.cpp:8:5: note: in instantiation of function template specialization 'boost::foreach_detail_::contain<boost::intrusive::list<boost::intrusive::list_base_hook<boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>, boost::intrusive::none, boost::intrusive::none, boost::intrusive::none> >' requested here
- BOOST_FOREACH (MyList::const_reference node, xs);
- ^
- /usr/include/boost/foreach.hpp:1097:77: note: expanded from macro 'BOOST_FOREACH'
- if (boost::foreach_detail_::auto_any_t BOOST_FOREACH_ID(_foreach_col) = BOOST_FOREACH_CONTAIN(COL)) {} else \
- ^
- /usr/include/boost/foreach.hpp:1009:5: note: expanded from macro 'BOOST_FOREACH_CONTAIN'
- boost::foreach_detail_::contain( \
- ^
- /usr/include/boost/foreach.hpp:562:5: note: candidate constructor not viable: no known conversion from 'const boost::foreach_detail_::simple_variant<boost::intrusive::list<boost::intrusive::list_base_hook<boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>, boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>>' to 'const boost::intrusive::list<boost::intrusive::list_base_hook<boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>, boost::intrusive::none, boost::intrusive::none, boost::intrusive::none> *' for 1st argument;
- simple_variant(T const *t)
- ^
- 1 warning and 3 errors generated.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement