Boost logo

Boost Users :

From: Jim.Hyslop (Jim.Hyslop_at_[hidden])
Date: 2004-08-05 10:23:54

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. (
Columnist, C/C++ Users Journal (

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at