Skip to content

Commit 565fd1c

Browse files
committed
Remove non-portable __PRETTY_FUNCTION__
1 parent 236e622 commit 565fd1c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/tao/json/internal/throw.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#define TAOCPP_JSON_THROW_TYPE_ERROR( TyPe ) \
1313
do { \
14-
throw std::logic_error( std::string( "invalid json type '" ) + to_string( TyPe ) + "' for function '" + __PRETTY_FUNCTION__ + '\'' ); \
14+
throw std::logic_error( std::string( "invalid json type '" ) + to_string( TyPe ) + '\'' ); \
1515
} while ( false )
1616

1717
#define TAOCPP_JSON_CHECK_TYPE_ERROR( HaVe, NeeD ) \

include/tao/json/sax/from_string.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace tao
2020
template< typename Handler >
2121
inline void from_string( const char * data, const std::size_t size, Handler & handler, const char * source = nullptr, const std::size_t line = 1, const std::size_t column = 0 )
2222
{
23-
tao_json_pegtl::input input( line, column, data, data + size, source ? source : __PRETTY_FUNCTION__ );
23+
tao_json_pegtl::input input( line, column, data, data + size, source ? source : "tao::json::sax::from_string" );
2424
tao_json_pegtl::parse_input< internal::grammar, internal::action, internal::control >( input, handler );
2525
}
2626

0 commit comments

Comments
 (0)