Skip to content

Commit e6f7559

Browse files
committed
Rename SAX callback for bool
1 parent ce037ad commit e6f7559

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

include/tao/json/internal/action.hh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

include/tao/json/internal/value_builder.hh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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 ); }

0 commit comments

Comments
 (0)