Boost logo

Boost Testing :

From: Caleb Epstein (caleb.epstein_at_[hidden])
Date: 2005-06-07 12:26:30

On 6/7/05, Rene Rivera <grafik.list_at_[hidden]> wrote:

> Caleb Epstein wrote:
> > I can confirm that the header void_cast.hpp is not being included.
> And I can confirm that it is being included :-\ By doing the same as you
> did but with MinGW (gcc-3.4.2). That only leaves one possibility. You
> don't have the latest sources. How do you get the Boost tree? FTP the
> snapshot from metacomm? Anon CVS from SF? Developer CVS from SF?

I'm using, which fetches:

# Downloading ""
to "/home/nbde52d/src/boost-regression"...

I think the answer is more subtle. From <boost/serialization/base_object.hpp>:

// if no archive headers have been included
// skip inclusion of void_cast.hpp . This is to avoid auto-link when
// a module doesn't doesn't actually invoke serializaton but rather
// just declares it.

    template<class Derived, class Base>
    const void * void_cast_register(
        const Derived * /* dnull = NULL */,
        const Base * /* bnull = NULL */
    #include <boost/serialization/void_cast.hpp>

It appears the first branch of the #if conditional is being pulled in
on my platform.

Caleb Epstein
caleb dot epstein at gmail dot com

Boost-testing list run by mbergal at