
-----Original Message----- From: Robert Ramey [mailto:ramey@rrsd.com] Sent: 16 May 2005 16:30 To: boost@lists.boost.org 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?
-----Original Message----- From: Robert Ramey [mailto:ramey@rrsd.com] Sent: 13 May 2005 15:51 To: boost@lists.boost.org 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
Marcin Tustin wrote: 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@it-innovation.soton.ac.uk 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