test/test_fns.cpp
std::string maybe_throw(const std::string& s, const float f)
{
 std::ostringstream os;
 os << s << ": " << f;

 if("throw" == s)
  throw std::runtime_error("exception thrown");

 return os.str();
}
/* Test function that maybe-throws: */
Test function that maybe-throws.
Test function that maybe - throws .
std::string maybe_throw(const std::string& s, const float f)
{
 std::ostringstream os;
 os << s << ": " << f;
 if("throw" == s)
  throw std::runtime_error("exception thrown");
 return os.str();
}
std :: string maybe_throw ( const std :: string & s , const float f ) { std :: ostringstream os ; os << s << " " << f ; if ( " " == s ) throw std :: runtime_error ( " " ) ; return os . str ( ) ; }
Test function that maybe-throws:
Test function that maybe - throws :