apoch / epoch-language

Home of the Epoch Programming Language Project
Other
72 stars 3 forks source link

Use more C++11 features #157

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 9 years ago
With Visual Studio 12 out, along with clang, I would like to see us focus some 
efforts on refactoring out a majority of the platform specific code into a few 
files and using a great deal of the C++11 functionality to clean up some of the 
other areas. One example of where this would be useful is in our regular 
expressions. Using raw strings in C++ 11 would avoid the excessive escaping 
needed:

const boost::wregex esc( _T("[\\^\\.\\$\\|\\(\\)\\[\\]\\+\\?\\/\\\\]") );

becomes

const boost::wregex esc( _T(R"[\^\.\$\|\(\)\[\]\+\?\/\\]") );

Original issue reported on code.google.com by ryoohki@gmail.com on 15 May 2013 at 12:40

apoch commented 8 years ago

The new C++ layer is already making use of C++11/C++14 features. I'm going to close this to clean up the issue tracker.