]> git.lyx.org Git - features.git/commit
Fix C++11 std::regex incompatibility
authorGeorg Baum <baum@lyx.org>
Tue, 24 Nov 2015 19:31:14 +0000 (20:31 +0100)
committerGeorg Baum <baum@lyx.org>
Tue, 24 Nov 2015 19:31:14 +0000 (20:31 +0100)
commite8211fb931bb8909d841a61a2e0b7f6c25cc2b28
tree2c3f87eceaab6675e2df8c2ed1bde3fdeaeec16d
parent12faf2b161e9d8ee0c62bfa421e1988ee80c44c0
Fix C++11 std::regex incompatibility

boost::regex supports escape sequences starting with a backslash in format
strings of regex_replace, but std::regex does not. Therefore format strings
involving literal backslashes have to be written differently for both flavours.

The special MSVC handling in regex.h is removed, since it is not needed
anymore, and using grep syntax would definitely be wrong.
src/frontends/qt4/GuiCitation.cpp
src/frontends/tests/biblio.cpp
src/support/regex.h