$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] shared_ptr and Visual Studio 2008 Express SP1
From: Igor R (boost.lists_at_[hidden])
Date: 2008-11-05 10:21:20
Hi,
"using" the whole namespace is not healthy, because you "dirty" the
global namespace and raise the probability of conflicts. Instead, you
could "import" some specific classes:
using boost::shared_ptr;
Then, if you decide to use the tr1 one, you just change it to:
using std::tr1::shared_ptr;
>
> For example in .cpp files I using several usings such as:
>
> using namespace std;
> using namespace std::tr1;
> using namespace boost;
>
> In source code I have something like this:
>
> shared_ptr<SomeType> var = /*...*/;
>
> And for each such line I have an error:
> error C2872: 'shared_ptr' : ambiguous symbol