RE: [Boost-users] "using namespace" in template implementation fi les
Erik Thiele wrote:
usually in normal non-template coding style i can do
using namespace std;
on the top of each .cpp file. but now i cannot do it, because it is actually in a header file and i don't want to include another namespace in the interface definition.
how can i solve the problem? i don't want to write "using namespace std" at the beginning of every template function declaration, but only once per implementation file. Unfortunately, you can't. Unless you can find a way to move the function definitions out of line, into a separate file - then it would be treated as any other .cpp file.
-- Jim Hyslop Senior Software Designer Leitch Technology International Inc. (http://www.leitch.com) Columnist, C/C++ Users Journal (http://www.cuj.com/experts)
participants (1)
-
Jim.Hyslop