Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Have You Started Using C++0x?

Tags:

c++

c++11

Most of the compilers already support C++0x. Have you started using C++0x or are you waiting for the definition of x? I have to do some refactoring of my code; should I start using the new features?

like image 511
amit kumar Avatar asked Jun 02 '09 15:06

amit kumar


2 Answers

C++0x is not a completed standard yet. It's likely that there will be many revisions before an international accepted standard is released. So it all depends, what are you writing code for? If it's for an work-assignment i would stick with regular C++, wait for the standard to be set and give the programming community the time it takes to adjust. Don't refactor code you really need to implement, it might give you a loot of trouble.

I however think C++0x great to play around with and also it can't hurt to be familiar with the syntax when 0x is globally accepted.

like image 51
Silfverstrom Avatar answered Sep 18 '22 00:09

Silfverstrom


I've started using nullptr, using #define nullptr 0 for those compilers (i.e. most) that don't support it yet.

like image 31
James Hopkin Avatar answered Sep 17 '22 00:09

James Hopkin