Advertisement
Guest User

Clang error

a guest
May 31st, 2012
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.93 KB | None | 0 0
  1. t.cpp:8:44: warning: unused variable 'node' [-Wunused-variable]
  2. BOOST_FOREACH (MyList::const_reference node, xs);
  3. ^
  4. /usr/include/boost/foreach.hpp:1104:14: note: expanded from macro 'BOOST_FOREACH'
  5. for (VAR = BOOST_FOREACH_DEREF(COL); !BOOST_FOREACH_ID(_foreach_continue); BOOST_FOREACH_ID(_foreach_continue) = true)
  6. ^
  7. /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>'
  8. ::new(this->data.address()) T(t);
  9. ^ ~
  10. /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
  11. return auto_any<simple_variant<T> >(*rvalue ? simple_variant<T>(t) : simple_variant<T>(&t));
  12. ^
  13. 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
  14. BOOST_FOREACH (MyList::const_reference node, xs);
  15. ^
  16. /usr/include/boost/foreach.hpp:1097:77: note: expanded from macro 'BOOST_FOREACH'
  17. if (boost::foreach_detail_::auto_any_t BOOST_FOREACH_ID(_foreach_col) = BOOST_FOREACH_CONTAIN(COL)) {} else \
  18. ^
  19. /usr/include/boost/foreach.hpp:1009:5: note: expanded from macro 'BOOST_FOREACH_CONTAIN'
  20. boost::foreach_detail_::contain( \
  21. ^
  22. /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
  23. BOOST_MOVABLE_BUT_NOT_COPYABLE(list)
  24. ^
  25. /usr/include/boost/move/move.hpp:371:7: note: expanded from macro 'BOOST_MOVABLE_BUT_NOT_COPYABLE'
  26. TYPE(TYPE &);\
  27. ^
  28. /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;
  29. list(const value_traits &v_traits = value_traits())
  30. ^
  31. /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;
  32. list(BOOST_RV_REF(list) x)
  33. ^
  34. /usr/include/boost/intrusive/list.hpp:1502:4: note: candidate constructor template not viable: requires at least 2 arguments, but 1 was provided
  35. list(Iterator b, Iterator e, const value_traits &v_traits = value_traits())
  36. ^
  37. In file included from t.cpp:1:
  38. /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>'
  39. ::new(this->data.address()) T(*that.get());
  40. ^ ~~~~~~~~~~~
  41. /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
  42. return auto_any<simple_variant<T> >(*rvalue ? simple_variant<T>(t) : simple_variant<T>(&t));
  43. ^
  44. 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
  45. BOOST_FOREACH (MyList::const_reference node, xs);
  46. ^
  47. /usr/include/boost/foreach.hpp:1097:77: note: expanded from macro 'BOOST_FOREACH'
  48. if (boost::foreach_detail_::auto_any_t BOOST_FOREACH_ID(_foreach_col) = BOOST_FOREACH_CONTAIN(COL)) {} else \
  49. ^
  50. /usr/include/boost/foreach.hpp:1009:5: note: expanded from macro 'BOOST_FOREACH_CONTAIN'
  51. boost::foreach_detail_::contain( \
  52. ^
  53. /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
  54. BOOST_MOVABLE_BUT_NOT_COPYABLE(list)
  55. ^
  56. /usr/include/boost/move/move.hpp:371:7: note: expanded from macro 'BOOST_MOVABLE_BUT_NOT_COPYABLE'
  57. TYPE(TYPE &);\
  58. ^
  59. /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;
  60. list(const value_traits &v_traits = value_traits())
  61. ^
  62. /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;
  63. list(BOOST_RV_REF(list) x)
  64. ^
  65. /usr/include/boost/intrusive/list.hpp:1502:4: note: candidate constructor template not viable: requires at least 2 arguments, but 1 was provided
  66. list(Iterator b, Iterator e, const value_traits &v_traits = value_traits())
  67. ^
  68. In file included from t.cpp:1:
  69. /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>>'
  70. : item(t)
  71. ^ ~
  72. /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
  73. return auto_any<simple_variant<T> >(*rvalue ? simple_variant<T>(t) : simple_variant<T>(&t));
  74. ^
  75. 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
  76. BOOST_FOREACH (MyList::const_reference node, xs);
  77. ^
  78. /usr/include/boost/foreach.hpp:1097:77: note: expanded from macro 'BOOST_FOREACH'
  79. if (boost::foreach_detail_::auto_any_t BOOST_FOREACH_ID(_foreach_col) = BOOST_FOREACH_CONTAIN(COL)) {} else \
  80. ^
  81. /usr/include/boost/foreach.hpp:1009:5: note: expanded from macro 'BOOST_FOREACH_CONTAIN'
  82. boost::foreach_detail_::contain( \
  83. ^
  84. /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;
  85. simple_variant(T const *t)
  86. ^
  87. 1 warning and 3 errors generated.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement