From 1fb53ca712de9deef5d79a53522dcd4be7a88ae7 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 30 Apr 2018 07:41:02 +1000 Subject: [PATCH] Fix wrong use of constexpr --- src/regex_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/regex_impl.cc b/src/regex_impl.cc index e074f68b..bb3f6c09 100644 --- a/src/regex_impl.cc +++ b/src/regex_impl.cc @@ -907,7 +907,7 @@ private: { for (auto& range : character_class.ranges) { - constexpr auto clamp = [](Codepoint cp) { return std::min(CompiledRegex::StartDesc::count, cp); }; + const auto clamp = [](Codepoint cp) { return std::min(CompiledRegex::StartDesc::count, cp); }; for (auto cp = clamp(range.min), end = clamp(range.max + 1); cp < end; ++cp) start_desc.map[cp] = true; if (range.max >= CompiledRegex::StartDesc::count)