|
Boost Users : |
Subject: Re: [Boost-users] serialization basic question
From: Jonathan Bishop (jbishop.rwc_at_[hidden])
Date: 2011-10-14 00:01:58
Luis,
I recall (many years ago) that in MSVC world a struct and a class are
not equivalent. I would need to see your code to tell you more. I am
in the process of using boost serializaiton myself, but on a Linux
platform.
Jon
On Thu, Oct 13, 2011 at 11:47 AM, Luis A. Montes <luis_at_[hidden]> wrote:
> Hi,
> I'm trying to use the serialization library and was having a compile
> error using MSVC 2005. So I decided to try and compile "A Very Simple
> Case" from the tutorial, and that of course works. But then I noticed
> that the example serializes a const object, that sort of is rather
> useless, so I removed the const specifier, and I got the same error that
> I was getting with my program, namely:
> warning C4099:
> 'boost::serialization::static_warning_impl<false>::STATIC_WARNING' :
> type name first seen using 'struct' now seen using 'class'
>
> I went googling for an answer and I found that I should look at the
> rationale on the docs, but the rationale
> (http://www.boost.org/doc/libs/1_47_0/libs/serialization/doc/rationale.html)
> doesn't seem at all relevant. I finally sort of guessed that I wanted
> was probably to modify the tracking behavior on my program (looking at
> the thread http://lists.boost.org/boost-users/2010/05/59107.php ). But
> my objects are not on the stack, so I'm not really sure. My class
> structure is a bit more complicated than the simple example, but my
> question basically is, what changes would be appropriate on the simple
> example so that it would compile for non-const objects?
>
> Thanks
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net