|
Boost Users : |
From: David Klein (dave_chp_at_[hidden])
Date: 2008-08-18 11:29:18
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net