user1546410
user1546410

Reputation: 71

A class with 2 names?

While reading code I came across a class which has 2 identifiers 'naming it':

class A_EXP Node
{
//..
};

I am not able to understand what this means. Could someone help me out?

Upvotes: 7

Views: 546

Answers (1)

cdhowie
cdhowie

Reputation: 169008

A_EXP is probably a macro, possibly expanding to nothing at all. It may also expand to a __declspec or similar declaration, which modifies how the compiler will emit the class as object code. A common use of this pattern would be:

#define A_EXP __declspec(dllexport)

Upvotes: 12

Related Questions