When starting a new project based on clang using c++11, how would you use new features like Variadic templates, Initializer lists, Defaulted and deleted functions, which are currently not implemented in VC11, to keep the possibility open to port the project to windows one day?
Share
Microsoft will be one of the quicker implementers. I honestly believe that. And you might too, after listening to STL (“STL? Any relations?”). So, just use it.
or
use
boostas an abstraction layer (currently implementing some variadic template-ish features via macros) and rely on that the boost-implementors choose a good implementation for your platform.Update, after @NicosC comment: If you are starting with Clang or GCC, you can use those on Windows as long as MS does not support the C++11 features you are using. I would see that as “motivating MS to improve C++11 support” (even more). So, if you have the choice, use the C++11 features that improve your code — easier to write, maintain and understand.