C++11 on all 5 platforms


#1

Is it currently possible to code with C++ 11 and deploy to all five platforms?

If not, what are the obstacles?  And can anyone estimate an ETA?

π


#2

Yep. No problem doing that.


#3

I think in practice it's more useful to think in terms of the compiler versions you are targeting, rather than in terms of language standards like C++11/14/17. Different versions of different compilers support different subsets of the C++11/14/17 standards. No compiler supports the full and complete standard afaik. Details here:

  • clang (OSX, iOS, Android Studio): http://clang.llvm.org/cxx_status.html
  • Visual Studio (Windows): https://msdn.microsoft.com/en-us/library/hh567368.aspx
  • gcc (Linux): https://gcc.gnu.org/projects/cxx0x.html

That being said, all the common features of C++11 like lambdas, variadic templates, move semantics, smart pointers, hashtables, override, noexcept, auto etc. are all supported by the newest versions of clang, VS and gcc, respectively. So the answer is yes.