Boost logo

Boost :

From: Shunsuke Sogame (mb2act_at_[hidden])
Date: 2006-02-19 00:42:48


David Abrahams wrote:
> David Abrahams <dave_at_[hidden]> writes:
>
>
>>This failure:
>>http://engineering.meta-comm.com/boost-regression/CVS-HEAD/developer/output/RudbekAssociates-bin-boost-libs-graph-test-graphviz_test-test-vc-7_1-debug-threading-multi.html
>>
>>Appears to be due to vc7.1 badly misinterpreting a using-directive in
>>the scope of the instantiating function. I suggest full qualification
>>of ::boost::detail in shared_ptr.hpp as a remedy.
>
>
> Correction about what stimulated the bug to appear: I now believe it
> was the following sequence in boost/graph/detail/read_graphviz_spirit.hpp
>
> using namespace std;
> using namespace boost;
> using namespace boost::spirit;
> using namespace phoenix;
>
> The amount of ambiguity being courted by bringing all those namespaces
> into a subnamespace of boost::detail (!) would scare me away from
> doing it, especially in a header file. But maybe that's just me.

FWIW, I recall I posted such error to Boost.Spirit.
   http://comments.gmane.org/gmane.comp.parsers.spirit.general/10232

using-directive is dangerous under vc7.1/8.0.

-- 
Regards,
Shunsuke Sogame

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk