Boost logo

Boost :

Subject: Re: [boost] [Serialization] extended_type_info.hpp
From: Robert Ramey (ramey_at_[hidden])
Date: 2010-02-28 23:48:29


OK - I see it now. Done.

Robert Ramey

Nikolay Mladenov wrote:
> Hello Mr Ramey,
>
> export.hpp includes itself with the comment
>
> // for guid_defined only
> (see the diff below)
>
> but guid_defined is in extended_type_info.hpp
>
> so I assume this is a typo
>
> And without the inclusion of extended_type_info.hpp
> export.hpp *really* specializes the undefined template guid_defined,
> as
> the error message posted from Fabien shows.
>
> Regards,
>
> Nikolay Mladenov
>
> $ svn diff -r HEAD export.hpp
> Index: export.hpp
> ===================================================================
> --- export.hpp (revision 59992)
> +++ export.hpp (working copy)
> @@ -34,7 +34,7 @@
> #include <boost/mpl/not.hpp>
> #include <boost/mpl/bool.hpp>
>
> -#include <boost/serialization/export.hpp> // for guid_defined only
> +#include <boost/serialization/extended_type_info.hpp> // for
> guid_defined only #include <boost/serialization/static_warning.hpp>
> #include <boost/serialization/assume_abstract.hpp>
> #include <boost/serialization/force_include.hpp>
>
> On Thu, Feb 4, 2010 at 12:19 PM, Robert Ramey <ramey_at_[hidden]> wrote:
>> Look oK to me
>>
>> Robert Ramey
>>
>> fab wrote:
>>> Hi,
>>> With boost 1.42.0, when I use BOOST_CLASS_EXPORT, I always need to
>>> include extended_type_info.hpp to resolve this error :
>>>
>>> xxx.hpp:153: error: 'guid_defined' is not a template
>>> xxx.hpp:153: error: explicit specialization of non-template
>>> 'boost::serialization::guid_defined'
>>> xxx.hpp:153: error: expected initializer before '<' token
>>> xxx.hpp:153: warning:
>>> 'boost::archive::detail::<unnamed>::init_guid<MyClass>::g' defined
>>> but not used
>>>
>>> Maybe extended_type_info.hpp can be included in export.hpp ?
>>>
>>> Fabien Castan
>>>
>>> _______________________________________________
>>> Unsubscribe & other changes:
>>> http://lists.boost.org/mailman/listinfo.cgi/boost
>>
>>
>>
>> _______________________________________________
>> Unsubscribe & other changes:
>> http://lists.boost.org/mailman/listinfo.cgi/boost
>>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost


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