[cfe-commits] [PATCH][MS] - type_info forward class declaration

Steven Watanabe watanabesj at gmail.com
Thu Aug 26 07:57:20 PDT 2010


AMDG

Douglas Gregor wrote:
> Does Visual C++ also implicitly declare namespace "std" or 
> "std::type_info"? That's the kind of thing you'll also want to check.
>

type_info is declared only in the global namespace.
namespace std is implicitly declared.  (VC++ 10.0)

compiles:
const type_info& f();

doesn't compile:
const std::type_info& f();

compiles:
namespace xxx = std;

doesn't compile:
namespace xxx = test;

In Christ,
Steven Watanabe




More information about the cfe-commits mailing list