Fix wrong use of constexpr

This commit is contained in:
Maxime Coste 2018-04-30 07:41:02 +10:00
parent e4f90e5ed2
commit 1fb53ca712

View File

@ -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)