Skip to content

Commit fd62c55

Browse files
committed
Revert std::size_t to std::streamsize
1 parent 3fb84fd commit fd62c55

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/tao/json/events/to_pretty_stream.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace tao
2929
{
3030
protected:
3131
std::ostream& os;
32-
const std::streamsize indent;
32+
const std::size_t indent;
3333

3434
std::string current = "\n";
3535
bool first = true;
@@ -49,7 +49,7 @@ namespace tao
4949
}
5050

5151
public:
52-
to_pretty_stream( std::ostream& in_os, const std::streamsize in_indent )
52+
to_pretty_stream( std::ostream& in_os, const std::size_t in_indent )
5353
: os( in_os ),
5454
indent( in_indent ),
5555
first( true )

include/tao/json/to_stream.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace tao
2525
}
2626

2727
template< template< typename... > class... Transformers, template< typename... > class Traits >
28-
void to_stream( std::ostream& os, const basic_value< Traits >& v, const std::streamsize indent )
28+
void to_stream( std::ostream& os, const basic_value< Traits >& v, const std::size_t indent )
2929
{
3030
events::transformer< events::to_pretty_stream, Transformers... > consumer( os, indent );
3131
events::from_value( consumer, v );

0 commit comments

Comments
 (0)