Re:Ask HN: jumping back into C++ after 4 years, what did I m...
by kchoudhu on Tuesday April 22, 2014 @04:01PM
(#7630040)
> use visual studio on mac
If only :(
Re:Ask HN: jumping back into C++ after 4 years, what did I m...
by CJefferson on Tuesday April 22, 2014 @04:03PM
(#7630052)
Typo fixed :) (which now makes this comment make nos sense. I agree Visual Studio is better than Xcode).
Build systems: cmake seems increasingly popular nowadays, but doesn't solve all autotools related issues.
C++11: If you are willing to require a reasonably recent version of each compiler, you can happily use almost every C++11 feature. auto and decltype are the two which I use the most day to day, and greatly help simplify code. If you are willing to use the very most recent version of clang or g++ (by which I mean gcc 4.9, released a couple of days ago), there is almost complete C++14 support. C++14 is mostly a cleanup, the only significant thing I have been using is generic lambda functions (lambda functions are in C++11).
Debugging: on mac there is lldb, never tried running it on linux. clang and g++ now have 'sanitizers' built in. I haven't use the g++ one, the clang memory sanitizer catches several bugs which valgrind misses (as valgrind is poor at detecting stack related issues).
Threads: C++11 has std::thread. It works fine for me but I don't do anything super fancy.