Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2003-08-12 20:41:35


Current GCC and Intel compilers don't appear to allow using declarations at
function scope, according to a bug report.

Is there any reason not to just move the using declarations to namespace
scope?

Answering my own queston, I think prefer the solution used in other boost
code where calls to say std::abs are explicitly qualified, and ifdef
BOOST_NO_STDC_NAMESPACE then namespace std { using ::abs; } is supplied.

What are the pros and cons of the different approaches?

--Beman


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