MCPcopy Create free account
hub / github.com/RenderKit/embree / convertInto

Function convertInto

tutorials/external/catch.hpp:7178–7186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7176
7177 template<typename T>
7178 inline auto convertInto( std::string const &source, T& target ) -> ParserResult {
7179 std::stringstream ss;
7180 ss << source;
7181 ss >> target;
7182 if( ss.fail() )
7183 return ParserResult::runtimeError( "Unable to convert '" + source + "' to destination type" );
7184 else
7185 return ParserResult::ok( ParseResultType::Matched );
7186 }
7187 inline auto convertInto( std::string const &source, std::string& target ) -> ParserResult {
7188 target = source;
7189 return ParserResult::ok( ParseResultType::Matched );

Callers 4

setValueMethod · 0.85
setValueMethod · 0.85
invokeLambdaFunction · 0.85
makeCommandLineParserFunction · 0.85

Calls 3

failMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected