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
Original issue reported on code.google.com by
ryoohki@gmail.com
on 15 May 2013 at 12:40