Boost logo

Boost :

Subject: Re: [boost] [hash][msvc 8.0] <boost/functional/hash/detail/float_functions.hpp> issuing a using namespace std directive?
From: Richard Webb (richard.webb_at_[hidden])
Date: 2009-06-18 08:00:09

Daniel James wrote:
> When I tested it, it didn't affect VC9

You get the same thing happening in VC9(SP1) if you put #include
<boost/functional/hash/hash.hpp> in a precompiled header and <list> in a cpp
file that includes it.

I recently ran into a similar issue, where i had

#include <boost/system/error_code.hpp>

in a cpp file and the hash header in the precompiled header, which causes
the error

boost\libs\system\src\error_code.cpp(267) : error C2872: 'invalid_argument'
: ambiguous symbol
    could be 'boost\system\error_code.hpp(85) : boost::system::errc::errc_t
    or '\microsoft visual studio 9.0\vc\include\stdexcept(76) :

Maybe a bit of an odd case, but confusing in any case.

In any case, it seems ok with the current trunk :)

View this message in context:
Sent from the Boost - Dev mailing list archive at

Boost list run by bdawes at, gregod at, cpdaniel at, john at