diff --git a/include/toml11/parser.hpp b/include/toml11/parser.hpp index 350c4f4..fc88a30 100644 --- a/include/toml11/parser.hpp +++ b/include/toml11/parser.hpp @@ -473,7 +473,7 @@ parse_floating(location& loc, const context& ctx) bool is_hex = false; std::string str; region reg; - if(spec.ext_hex_float && sequence(character('0'), character('x')).scan(loc).is_ok()) + if(spec.ext_hex_float && literal("0x").scan(loc).is_ok()) { loc = first; is_hex = true;