X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FException.cti;h=88aaca89b4fed82bc1dfcbace7e555b97ca9376d;hb=48e002c85474560e93187b1423a75dde49463147;hp=bd89b67b521442d293b8e101e55fdc0605285bb2;hpb=96d3a2a43b4e6d7693a136a3adeb099440f19068;p=senf.git diff --git a/Utils/Exception.cti b/Utils/Exception.cti index bd89b67..88aaca8 100644 --- a/Utils/Exception.cti +++ b/Utils/Exception.cti @@ -1,8 +1,8 @@ // $Id$ // -// Copyright (C) 2007 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) +// 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 @@ -31,13 +31,17 @@ ///////////////////////////////cti.p/////////////////////////////////////// template -prefix_ senf::ErrnoException::ErrnoException() - : SystemException(fixed_code) +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(char const * where) - : SystemException(where,fixed_code) +prefix_ senf::ErrnoException::ErrnoException(ErrnoException const & other) + : SystemException(other) {} /////////////////////////////cti.e///////////////////////////////////////