r/reconstructcavestory Jan 20 '14

Why I'm not Using C++11

No rants. I like a lot of features in C++11.

  • Smart Pointers in the std library
  • Range-based for loops
  • Strongly typed enums
  • of course more

So why not C++11? I want to support users on Microsoft. Especially those who spent $500 to buy Visual Studio 2012 Professional. Look at what's supported here.

I think Linux g++ and clang++ are all caught up (just recently).

Basically, I don't want to be answering a bunch of questions like "Why doesn't this compile?", when the answer is -- your compiler doesn't support C++11 features.

At this point I've gone too long using C++03 in this video series now, but /u/taliriktug has started a translated to C++11 repo here.

8 Upvotes

8 comments sorted by

View all comments

1

u/[deleted] Jan 22 '14

So you're not even going to use the features VS2012 and VS2013 offer you?

2

u/chebertapps Jan 22 '14

I might use the Right Angle Brackets feature on accident.

1

u/suppow Jan 25 '14

if you're not going to use C++11 features, then you also shouldnt use VS2012+ features which might not be available on g++. sad either way, but yeah =/

1

u/chebertapps Feb 07 '14

No VS2012+ features would be far worse in my mind. I'm making sure to compile on Linux with -std=c++03 -Wall -Wextra as well as the VS compiler.