diff options
Diffstat (limited to 'src/template.cpp')
-rw-r--r-- | src/template.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/template.cpp b/src/template.cpp index 61411be..4c296aa 100644 --- a/src/template.cpp +++ b/src/template.cpp @@ -4186,7 +4186,7 @@ class TemplateNodeMarkers : public TemplateNodeCreator<TemplateNodeMarkers> c->push(); std::string str = patternStr.toString().str(); - static std::regex marker("@([[:digit:]]+)"); + static const std::regex marker("@([[:digit:]]+)", std::regex::optimize); std::sregex_iterator re_it(str.begin(),str.end(),marker); std::sregex_iterator end; size_t index=0; |