qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carl Trieloff <cctriel...@redhat.com>
Subject Re: C++ namespaces and 'using' question
Date Thu, 11 Sep 2008 00:45:42 GMT
Steve Huston wrote:
> Hi,
>
> In working on the Windows port, I've come across a few places where
> there's C++ using-directives such as:
>
> using namespace qpid::framing;
>
> ...
>
> int MyClass::Method (framing::Buffer &b)
> ...
>
> g++ is ok with this construct, but Microsoft Visual C++ complains that
> framing is unknown. Essentially, what VC wants is either:
>
> using qpid::framing;
>
> Or
>
> using namespace qpid;

I think this one is the way to go and the correct per c++  -- andrew y/n?

using namespace qpid;

But we should make sure it works across all the complier options we support.

Carl.



Mime
View raw message