Skip to content
Snippets Groups Projects

Allow ADL lookup of parse and toStream

Merged Gerhard Raven requested to merge allow-adl-parse-toStream into future
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
@@ -156,7 +156,8 @@ namespace Gaudi
inline TYPE fromString( const std::string& s )
{
TYPE tmp;
if ( !Gaudi::Parsers::parse( tmp, s ).isSuccess() ) {
using Gaudi::Parsers::parse;
if ( !parse( tmp, s ).isSuccess() ) {
throw std::invalid_argument( "cannot parse '" + s + "' to " + System::typeinfoName( typeid( TYPE ) ) );
}
return tmp;
@@ -615,7 +616,8 @@ namespace Gaudi
void toStream( std::ostream& out ) const override
{
m_handlers.useReadHandler( *this );
Utils::toStream( m_value, out );
using Utils::toStream;
toStream( m_value, out );
}
};
Loading