** implementation of SourceLocation
*/
-SourceLocation::SourceLocation()
+SourceLocation::SourceLocation() throw ()
: Line ( 0 )
{
} // eo SourceLocation::SourceLocation()
const std::string& file,
long line,
const std::string& funcname
-)
+) throw ()
: File( file )
, Line( line )
, FunctionName( funcname )
*/
/**
- * macro which encapsulates the construction of a source location.
+ * macro which encapsulates the construction of a source location. Never throws
*/
#define HERE ::I2n::SourceLocation(__FILE__,__LINE__,BOOST_CURRENT_FUNCTION)
long Line;
std::string FunctionName;
- SourceLocation();
+ SourceLocation() throw ();
SourceLocation(
const std::string& file,
long line,
- const std::string& funcname);
+ const std::string& funcname) throw ();
- operator bool() const
+ operator bool() const throw ()
{
return Line>0 and not File.empty() and not FunctionName.empty();
} // eo operator bool
- std::string get_function_name() const { return FunctionName; }
- std::string get_filename() const { return File; }
- long get_line_number() const { return Line; }
+ std::string get_function_name() const throw () { return FunctionName; }
+ std::string get_filename() const throw () { return File; }
+ long get_line_number() const throw () { return Line; }
std::string get_location_tag() const;