Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

namespace and #define

Name: Anonymous 2010-09-30 4:03

Hello

I noticed that when I use #define inside a namespace then this #define only
works when prefixed with the namespace name.

Is this behaviour standard or just compiler specific?

I use VC7.

namespace test
{
#define X int
};

Now can be used as:

test::X

--
Elias

Name: Anonymous 2010-11-29 5:06

test

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List