|
Boost : |
From: Robert Ramey (ramey_at_[hidden])
Date: 2006-09-29 18:55:58
To address a complaint from the Commeau compiler I changed to
return dynamically_initialized<pointer_iserializer<Archive,T> >::instance;
I haven't checked this in yet. Try it in your situation to see if that's
the
right fix.
"this->" cannot be used as this is a static function w/o a "this" pointer.
Robert Ramey
Brian Schrom wrote:
> I'm getting the compile errors below when compiling the lastest code
> from CVS on Debian with gcc 4.1.2
>
> # g++ --version
> g++ (GCC) 4.1.2 20060920 (prerelease) (Debian 4.1.1-14)
>
> This happened also with g++-4.0 (GCC) 4.0.4 20060630 (prerelease)
> (Debian
> 4.0.3-5)
>
> I'm not sure if it is a compiler problem, or a code problem. It all
> compiled the last time I tried a few weeks ago. I noticed recent
> activity on dynamically_initialized.hpp where instance is decared. I
> tried with the current revision of the file, and one back. Both
> produce the same error.
>
> ./boost/archive/detail/iserializer.hpp: In static member function
> 'static const boost::archive::detail::pointer_iserializer<Archive, T>&
> boost::archive::detail::pointer_iserializer<Archive,
> T>::get_instance()': ./boost/archive/detail/iserializer.hpp:329:
> error: 'instance' was not declared in this scope
> ./boost/archive/detail/oserializer.hpp: In static member function
> 'static const boost::archive::detail::pointer_oserializer<Archive, T>&
> boost::archive::detail::pointer_oserializer<Archive,
> T>::get_instance()': ./boost/archive/detail/oserializer.hpp:230:
> error: 'instance' was not declared in this scope
>
> Brian
> _______________________________________________
> 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