Mercurial > hg > orthanc-stone
changeset 1088:fe723ea10d98 broker
fix for older compilers
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 23 Oct 2019 10:50:30 +0200 |
parents | 6cf58788f37f |
children | 998d9e4402e0 |
files | Framework/Toolbox/GenericToolbox.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Framework/Toolbox/GenericToolbox.cpp Tue Oct 22 13:19:25 2019 +0200 +++ b/Framework/Toolbox/GenericToolbox.cpp Wed Oct 23 10:50:30 2019 +0200 @@ -29,7 +29,7 @@ { bool GetRgbaValuesFromString(uint8_t& red, uint8_t& green, uint8_t& blue, uint8_t& alpha, const char* text) { - boost::regex pattern(R"bgo(\s*rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)\s*)bgo"); + boost::regex pattern("\\s*rgb\\s*\\(\\s*([0-9]+)\\s*,\\s*([0-9]+)\\s*,\\s*([0-9]+)\\s*,\\s*([0-9]+)\\s*\\)\\s*"); boost::cmatch what; @@ -68,7 +68,7 @@ } bool GetRgbValuesFromString(uint8_t& red, uint8_t& green, uint8_t& blue, const char* text) { - boost::regex pattern(R"bgo(\s*rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)\s*)bgo"); + boost::regex pattern("\\s*rgb\\s*\\(\\s*([0-9]+)\\s*,\\s*([0-9]+)\\s*,\\s*([0-9]+)\\s*\\)\\s*"); boost::cmatch what;