示例#1
0
inline void LogicError( Args... args )
{
    ostringstream os;
    BuildStream( os, args... );
    os << endl;
    throw std::logic_error( os.str().c_str() );
}
示例#2
0
inline void RuntimeError( Args... args )
{
    std::ostringstream os;
    BuildStream( os, args... );
    os << std::endl;
    throw std::logic_error( os.str().c_str() );
}
示例#3
0
文件: decl.hpp 项目: mcopik/Elemental
inline void RuntimeError( Args... args )
{
    ostringstream os;
    BuildStream( os, args... );
    os << endl;
    throw std::runtime_error( os.str().c_str() );
}
示例#4
0
文件: decl.hpp 项目: mcopik/Elemental
inline void UnrecoverableError( Args... args )
{
    ostringstream os;
    BuildStream( os, args... );
    os << endl;
    UnrecoverableException( os.str().c_str() );
}
示例#5
0
inline void BuildStream( std::ostringstream& os, T item, Args... args )
{
    os << item;
    BuildStream( os, args... );
}
示例#6
0
文件: decl.hpp 项目: mcopik/Elemental
inline string BuildString( Args... args )
{ 
    ostringstream os;
    BuildStream( os, args... );
    return os.str(); 
}
示例#7
0
inline void BuildStream
( ostringstream& os, const T& item, const Args& ... args )
{
    os << item;
    BuildStream( os, args... );
}