From 79a4c20a95e174c1ceeb874b9b2776b34b5be6dc Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 11 Jan 2016 23:00:40 +0000 Subject: Add a wrapper constructor to Exception to pass parameters to BaseException's constructor --- libadhocutil/exception.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libadhocutil/exception.h b/libadhocutil/exception.h index fd4263c..57ce7c3 100644 --- a/libadhocutil/exception.h +++ b/libadhocutil/exception.h @@ -10,6 +10,11 @@ namespace AdHoc { template class Exception : public BaseException { public: + /// Wrapper constructor to pass to BaseException + //@param t parameters to pass. + template + Exception(const T & ... t) : BaseException(t...) { } + /// Override of std::exception::what() to create text as required. inline const char * what() const throw() override { -- cgit v1.2.3