Reputation: 71
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
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