select1st
is not a part of Standard C++ Library but STL. Particularly it's supported by STLPort.
typedef std::map< std::string, std::string > Parameters;
Parameters parameters;
...
std::ostringstream os;
os << "Wrong parameters: ";
std::transform( parameters.begin(), parameters.end(),
std::ostream_iterator<std::string>( os, " " ),
std::select1st< Parameters::value_type >() );
throw Exception( os.str() );
No comments:
Post a Comment