Boost logo

Boost :

Subject: [boost] Are you a C++ guru - prove it here !
From: Robert Ramey (ramey_at_[hidden])
Date: 2009-01-14 23:02:22


I'm having problems with the following code below from
boost/serialization/export.hpp

compiling

BOOST_CLASS_EXPORT_GUID(final, "final")

results in the following error message on the gcc compilers.

error: too few template-parameter-lists

VC compilers don't complain about this. I've tried replacing

::boost::archive::detail::init_guid< T >::guid_initializer = \

with

::boost::archive::detail::init_guid< T >::guid_initializer< T> =\

But this doesn't help. Happy to get help from any C++ guru

Robert Ramey

template<typename T>
class init_guid {
static ::boost::archive::detail::guid_initializer<T> const
& guid_initializer;
};
} // namespace detail
} // namespace archive
} // namespace boost

#define BOOST_CLASS_EXPORT_GUID(T, K) \
::boost::archive::detail::guid_initializer< T > const & \
::boost::archive::detail::init_guid< T >::guid_initializer = \
::boost::serialization::singleton< \
::boost::archive::detail::guid_initializer< T > \
>::get_mutable_instance().export_guid(K); \


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk