File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
include/tao/json/internal Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ namespace tao
3636 template < typename State >
3737 static void apply ( const tao_json_pegtl::input &, State & handler )
3838 {
39- handler.bool_ ( true );
39+ handler.true_ ( );
4040 }
4141 };
4242
@@ -46,7 +46,7 @@ namespace tao
4646 template < typename State >
4747 static void apply ( const tao_json_pegtl::input &, State & handler )
4848 {
49- handler.bool_ ( false );
49+ handler.false_ ( );
5050 }
5151 };
5252
Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ namespace tao
1818 // class value_handler
1919 // {
2020 // void null() {}
21- // void bool_( const bool v ) {}
21+ // void true_() {}
22+ // void false_() {}
2223 // void number( const std::int64_t v ) {}
2324 // void number( const std::uint64_t v ) {}
2425 // void number( const double v ) {}
@@ -43,7 +44,8 @@ namespace tao
4344 value_builder () : current( & value ) {}
4445
4546 void null () { current->unsafe_assign_null (); }
46- void bool_ ( const bool v ) { current->unsafe_assign_bool ( v ); }
47+ void true_ () { current->unsafe_assign_bool ( true ); }
48+ void false_ () { current->unsafe_assign_bool ( false ); }
4749 void number ( const std::int64_t v ) { current->unsafe_assign_signed ( v ); }
4850 void number ( const std::uint64_t v ) { current->unsafe_assign_unsigned ( v ); }
4951 void number ( const double v ) { current->unsafe_assign_double ( v ); }
You can’t perform that action at this time.
0 commit comments