Can someone please confirm whether this is a bug in the code or in
the compiler?
==
#include
using namespace boost::intrusive;
struct C : public list_base_hook<>
{
int i;
};
list<C> test_list;
==
Compiling with g++ 4.2.2 works fine, whereas compiling with CC
(CC: Sun C++ 5.9 SunOS_i386 Patch 124864-02 2007/12/18) gives
the following errors:
"/home/zvrba/COMPILE/boost_1_35_0/boost/intrusive/list.hpp", line 107: Error: po
inter is not a member of boost::intrusive::detail::generic_hook, boost::intrusive::default_tag, 1, 1>.
"/home/zvrba/COMPILE/boost_1_35_0/boost/intrusive/list.hpp", line 1409: Wher
e: While specializing "boost::intrusive::list_impl,
boost::intrusive::default_tag, 1, 1>, unsigned, 1>>".
"/home/zvrba/COMPILE/boost_1_35_0/boost/intrusive/list.hpp", line 1409: Wher
e: Specialized in boost::intrusive::list.
"q.cc", line 10: Where: Specialized in non-template code.
(and 10 additional errors about something [const_pointer, iterator_traits, etc.]
not being a member of ..)
Thanks.