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

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to