|
Boost : |
From: Marcin Tustin (mt_at_[hidden])
Date: 2005-05-17 03:42:49
> -----Original Message-----
> From: Robert Ramey [mailto:ramey_at_[hidden]]
> Sent: 16 May 2005 16:30
> To: boost_at_[hidden]
> Subject: [boost] Re: Re: Non-intrusive serialization with VC2003 (7.1)
>
> Note the "long int hack" isn't used with vc 7.1 as it support
> correct partial template ordering.
Interesting. Still doesn't explain why the compiler is trying to
use the intrusive stuff, rather than the non-intrusive layer, at least
to my relatively unschooled C++ mind. Is there anything I should do, or
should I try something like writing wrapper classes for everything?
> Marcin Tustin wrote:
> >> -----Original Message-----
> >> From: Robert Ramey [mailto:ramey_at_[hidden]]
> >> Sent: 13 May 2005 15:51
> >> To: boost_at_[hidden]
> >> Subject: [boost] Re: Non-intrusive serialization with VC2003 (7.1)
> >>
> >> Try putting your function inside the namespace D2
> >
> > I did. I also tried putting it in the global namespace. Same error.
> >
> >> Robert Ramey
> >>
> >> Marcin Tustin wrote:
> >>> I'm trying to use the serialization and archive
> libraries, and I'm
> >>> having a bit of trouble getting non-intrusive serializaton
> >> to work; I
> >>> keep getting the error
> >>> "c:\boost_1_32_0\boost\serialization\access.hpp(106): error C2039:
> >>> 'serialize' : is not a member of 'D2::Message'". My guess
> >> is that for
> >>> some reason the "long int" hack isn't working properly. I have
> >>> serialize methods in the boost::seralization namespace like this:
> >>>
> >>> namespace boost {
> >>> namespace serialization {
> >>> template<class Archive >
> >>> static void serialize(Archive & ar, const
> >> D2::Message& g, const
> >>> unsigned int version)
> >>> {
> >>> //...
> >>> }
> >>>
> >>> } };
> >>>
> >>> Which are textually before any use of the library, as far
> as I can
> >>> tell.
> >>>
> >>> Any help would be much appreciated.
> >>>
> >>> Marcin Tustin
> >>> IT Innovation Centre
> >>> 2 Venture Road
> >>> Chilworth Science Park
> >>> Southampton, SO16 7NP, UK
> >>>
> >>> tel: +44 23 8076 0834
> >>> fax: +44 23 8076 0833
> >>>
> >>> mailto:mt_at_[hidden]
> >>> http://www.it-innovation.soton.ac.uk
> >>>
> >>> _______________________________________________
> >>> 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