[Intrusive] compile error with codewarrior

hi all, i'm trying to use the intrusive library but can't compile anything. i also tried member_hook's and the slist instead of list but it fails with the same error. any ideas on how to fix this? #include <boost/intrusive/list.hpp> struct foo : public list_base_hook<> { }; void dummy( void ) { list<foo> l; } 1>..\..\include\boost\intrusive\list.hpp(1435): illegal non-type template argument 1>..\..\include\boost\intrusive\list.hpp(1435): (point of instantiation: 'dummy()') 1>..\..\include\boost\intrusive\list.hpp(1435): (instantiating: 'boost::intrusive::list<foo, boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>') 1>..\..\include\boost\intrusive\list.hpp(1435): (instantiating: 'boost::intrusive::list_impl<boost::intrusive::listopt<boost::intrusive::detail::base_hook_traits<foo, boost::intrusive::list_node_traits<void *>, 1, boost::intrusive::default_tag, 1>, unsigned long, true>>') 1>..\..\include\boost\intrusive\list.hpp(1435): note: (corresponding point of instantiation for 'boost::intrusive::list_impl<boost::intrusive::listopt<boost::intrusive::detail::base_hook_traits<foo, boost::intrusive::list_node_traits<void *>, 1, boost::intrusive::default_tag, 1>, unsigned long, true>>') 1>..\src\main.cpp(15): note: (corresponding point of instantiation for 'boost::intrusive::list<foo, boost::intrusive::none, boost::intrusive::none, boost::intrusive::none>') compiler: metrowerks c/c++ for embedded arm version 3.0 build 138 (it's the compiler for the nintendo ds platform) boost version: 1.35 + 1.36 -- regards, dave

David Klein wrote:
hi all,
i'm trying to use the intrusive library but can't compile anything. i also tried member_hook's and the slist instead of list but it fails with the same error. any ideas on how to fix this?
Sorry, Intrusive was not tested for Codewarrior, so I suppose that the compiler is not conformant enough. Regards, Ion
participants (2)
-
David Klein
-
Ion Gaztañaga