summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libadhocutil/exception.h5
1 files changed, 5 insertions, 0 deletions
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 <typename BaseException>
class Exception : public BaseException {
public:
+ /// Wrapper constructor to pass to BaseException
+ //@param t parameters to pass.
+ template <typename ... T>
+ Exception(const T & ... t) : BaseException(t...) { }
+
/// Override of std::exception::what() to create text as required.
inline const char * what() const throw() override
{