In gcc I am writting friend class FriendMaker<T>::Type
but Visual Studio wants friend FriendMaker<T>::Type
. So I think it is time to go compiler specific.
So What I need to ifdef
for Visual Studio
? I am using 2010 at the moment but I may switch to 2012 latter.
Use the macro _MSC_VER
. To check if the compiler is VS2010, or above:
#if _MSC_VER >= 1600
The following are values for the different versions of VS:
1310
1400
1500
1600
1700