|
Boost : |
From: Stefan Seefeld (seefeld_at_[hidden])
Date: 2006-09-29 18:45:10
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
Looks as if 'instance' needs to be qualified by 'this->' since it comes from
a dependent base class.
Regards,
Stefan
-- ...ich hab' noch einen Koffer in Berlin...
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk