It is currently Sun Apr 22, 2018 9:57 pm Advanced search

Enable C++0x

Code won't compile? Found a bug? Post here!

Enable C++0x

Postby Eric » Tue Feb 09, 2010 5:16 am

Thanks for organizing this challenge. Also, thank you for being receptive to your community and enabling optimizations (-O2) for C++.

Optimizations will certainly make our solutions execute faster. I have a suggestion, however, that will make us execute faster. Namely, enabling C++0x extensions. There are a number of useful classes (shared_ptr, unordered_*, function) that are part of C++0x that are time consuming to implement/copy on our own. Time that could be better spent tuning our algorithms. =)

The following site describes C++0x:
http://gcc.gnu.org/projects/cxx0x.html

All that would be needed would be to add the "-std=c++0x" command line argument. I'm fairly certain doing so would not cause existing solutions to break. If there was a breakage, it would likely have a trivial fix. I believe the benefits outweigh this remote risk.
Eric
Cadet
 
Posts: 2
Joined: Tue Feb 09, 2010 4:57 am

Return to Technical Issues

Who is online

Users browsing this forum: No registered users and 1 guest

cron