X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FException.cti;h=3588cdcac3dc29c9d5e357ca7f04c39c597001da;hb=5924d77edecbcaff60821afb9fd13169b0a2e2ec;hp=65723fa7f4e6497009264282541cdfd1b0fb71d1;hpb=f73fa16ed5abdce272ac77f8b8b9ef2b9922c266;p=senf.git diff --git a/Utils/Exception.cti b/Utils/Exception.cti index 65723fa..3588cdc 100644 --- a/Utils/Exception.cti +++ b/Utils/Exception.cti @@ -1,8 +1,8 @@ // $Id$ // -// Copyright (C) 2007 -// Fraunhofer Institute for Open Communication Systems (FOKUS) -// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Copyright (C) 2007 +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund // // This program is free software; you can redistribute it and/or modify @@ -26,23 +26,17 @@ //#include "Exception.ih" // Custom includes +#include #define prefix_ inline ///////////////////////////////cti.p/////////////////////////////////////// -template -prefix_ senf::ErrnoException::ErrnoException(std::string const & where) - : SystemException(where,fixed_code) -{} - -// I for some reason need to explicitly define this constructor even though it's defined identically -// to the default version (even though SyntaxException has a custom copy constructor, the -// non-existent std::stringstream copy constructor will be called otherwise). I believe this is a -// g++ bug. -template -prefix_ senf::ErrnoException::ErrnoException(ErrnoException const & other) - : SystemException(other) -{} +template +prefix_ senf::Exception & senf::Exception::operator<<(Arg const & arg) +{ + message_ += boost::lexical_cast(arg); + return *this; +} /////////////////////////////cti.e/////////////////////////////////////// #undef prefix_