Beispiel #1
0
inline void LogicError( Args... args )
{
    ostringstream os;
    BuildStream( os, args... );
    os << endl;
    throw std::logic_error( os.str().c_str() );
}
Beispiel #2
0
inline void RuntimeError( Args... args )
{
    std::ostringstream os;
    BuildStream( os, args... );
    os << std::endl;
    throw std::logic_error( os.str().c_str() );
}
Beispiel #3
0
inline void RuntimeError( Args... args )
{
    ostringstream os;
    BuildStream( os, args... );
    os << endl;
    throw std::runtime_error( os.str().c_str() );
}
Beispiel #4
0
inline void UnrecoverableError( Args... args )
{
    ostringstream os;
    BuildStream( os, args... );
    os << endl;
    UnrecoverableException( os.str().c_str() );
}
Beispiel #5
0
inline void BuildStream( std::ostringstream& os, T item, Args... args )
{
    os << item;
    BuildStream( os, args... );
}
Beispiel #6
0
inline string BuildString( Args... args )
{ 
    ostringstream os;
    BuildStream( os, args... );
    return os.str(); 
}
Beispiel #7
0
inline void BuildStream
( ostringstream& os, const T& item, const Args& ... args )
{
    os << item;
    BuildStream( os, args... );
}