|
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
#define BOOST_ERROR_CODE_HEADER_ONLY
#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
invalid_argument'
or '\microsoft visual studio 9.0\vc\include\stdexcept(76) :
std::invalid_argument'
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: http://www.nabble.com/-hash--msvc-8.0--%3Cboost-functional-hash-detail-float_functions.hpp%3E-issuing-a-using-namespace-std-directive--tp24080810p24091638.html Sent from the Boost - Dev mailing list archive at Nabble.com.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk