From 95fd640876ef0f49c5667a4888ce95c5d36ca2b9 Mon Sep 17 00:00:00 2001 From: ljfa-ag Date: Wed, 5 Aug 2015 11:50:26 +0200 Subject: Use "using" for inheriting input_error constructors --- include/io/stream_reader.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'include') diff --git a/include/io/stream_reader.h b/include/io/stream_reader.h index 74f9536105..9d503f8ea4 100644 --- a/include/io/stream_reader.h +++ b/include/io/stream_reader.h @@ -39,9 +39,7 @@ public: ///Exception that gets thrown when reading is not successful class input_error : public std::runtime_error { - public: - input_error(const std::string& what_arg): - std::runtime_error(what_arg) {} + using std::runtime_error::runtime_error; }; /** -- cgit 0.0.5-2-1-g0f52