X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FException.cti;h=f0be6aa18ab4c1d1c41560fe7f97a09f71016de7;hb=34378cabd0ef59515f60b8e535d50fd5488c84e2;hp=bd89b67b521442d293b8e101e55fdc0605285bb2;hpb=90ba247d06107cff657ad3e6310f8dde7c808c95;p=senf.git diff --git a/Utils/Exception.cti b/Utils/Exception.cti index bd89b67..f0be6aa 100644 --- a/Utils/Exception.cti +++ b/Utils/Exception.cti @@ -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///////////////////////////////////////