From f76291cd3b8a2dc5405ab6caabcc1c966be61c28 Mon Sep 17 00:00:00 2001 From: Francois Chabot Date: Tue, 22 Jan 2019 15:00:26 -0500 Subject: [PATCH] corrected lexer comment w/ regard to null null chars --- include/nlohmann/detail/input/lexer.hpp | 3 +-- single_include/nlohmann/json.hpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/nlohmann/detail/input/lexer.hpp b/include/nlohmann/detail/input/lexer.hpp index 926175ca7..b5540e3d2 100644 --- a/include/nlohmann/detail/input/lexer.hpp +++ b/include/nlohmann/detail/input/lexer.hpp @@ -1459,8 +1459,7 @@ scan_number_done: case '9': return scan_number(); - // end of input (the null byte is needed when parsing from - // string literals) + // end of input case std::char_traits::eof(): return token_type::end_of_input; diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 24b35e60d..3f15880e1 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -4041,8 +4041,7 @@ scan_number_done: case '9': return scan_number(); - // end of input (the null byte is needed when parsing from - // string literals) + // end of input case std::char_traits::eof(): return token_type::end_of_input;