Welcome, Guest. Please login or register. Did you miss your activation email?

Poll

Do you use C++11 features?

Yes
36 (50%)
No, but I plan to use them in the near future
25 (34.7%)
No, and I am not interested in them
11 (15.3%)

Total Members Voted: 71

Voting closed: March 10, 2012, 01:58:16 pm

Author Topic: Do you use C++11?  (Read 18930 times)

0 Members and 1 Guest are viewing this topic.

gsaurus

  • Sr. Member
  • ****
  • Posts: 262
    • View Profile
    • Evolution Engine
Do you use C++11?
« Reply #30 on: March 13, 2012, 02:52:50 pm »
Quote from: "OniLink10"
It's a keyword.

I know, but I still feel it strange:
http://en.cppreference.com/w/cpp/keyword
We have keywords like const_cast and not_eq, and other keywords like constexpr and nullptr. I can somehow understand the difference between the "class" of keywords using '_' and those without, but I don't particularly enjoy it. When I started using smart pointers I always wrote null_ptr by mistake  :P
Pluma - Plug-in Management Framework

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Do you use C++11?
« Reply #31 on: March 17, 2012, 09:21:28 pm »
Thank you for all the feedback. The majority (86%) seems to use C++11 already or soon, I didn't expect so much interest ;)

Currently I am reflecting about using C++11 in Thor. For the users, this wouldn't change much (they could write std instead of std::tr1). However, internally, many simplifications or even optimizations become possible. The price to pay is a recent compiler like g++ 4.6 or MSVC++ 2010 (which has existed for 2 years already).

What do you think?
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10821
    • View Profile
    • development blog
    • Email
Do you use C++11?
« Reply #32 on: March 17, 2012, 09:52:35 pm »
As long as the features are equally supported by MSVC++ 2010 and g++ it's fine with me. If it's something else like lambdas which is only supported by MSVC++ 2011 I think it's not okay, since MSVC++ 2011 is only on it's beta stage.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Lee R

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
Do you use C++11?
« Reply #33 on: March 18, 2012, 08:24:05 am »
Quote from: "eXpl0it3r"
[...] If it's something else like lambdas which is only supported by MSVC++ 2011 [...].

http://msdn.microsoft.com/en-us/library/dd293608.aspx

Ahem...

 

anything