summaryrefslogtreecommitdiff
path: root/modules/codec-json/c++/json.tmpl.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/codec-json/c++/json.tmpl.hpp')
-rw-r--r--modules/codec-json/c++/json.tmpl.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/codec-json/c++/json.tmpl.hpp b/modules/codec-json/c++/json.tmpl.hpp
index 039f066..0ff2a38 100644
--- a/modules/codec-json/c++/json.tmpl.hpp
+++ b/modules/codec-json/c++/json.tmpl.hpp
@@ -525,9 +525,11 @@ struct json_decode<schema::Primitive<T,N>, ToDecode> {
* Hacky setup for float check
*/
if(do_loop && leading_zero){
+ /* Wrong because this falls into a state where ',' is an error.
if(buff.read(offset) != '.'){
return make_error<err::invalid_state>("Leading zero, but no '.' afterwards");
}
+ */
}
while(do_loop){