From b5cff8cc5c72c8d895e97075c0ab0f223cd81b09 Mon Sep 17 00:00:00 2001 From: ljfa-ag Date: Thu, 6 Aug 2015 10:27:06 +0200 Subject: Move input_error out from stream_reader --- include/io/stream_reader.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/io/stream_reader.h b/include/io/stream_reader.h index 056d14e9dd..7d97824927 100644 --- a/include/io/stream_reader.h +++ b/include/io/stream_reader.h @@ -31,18 +31,18 @@ namespace nbt namespace io { +///Exception that gets thrown when reading is not successful +class input_error : public std::runtime_error +{ + using std::runtime_error::runtime_error; +}; + /** * @brief Helper class for reading NBT tags from input streams */ class stream_reader { public: - ///Exception that gets thrown when reading is not successful - class input_error : public std::runtime_error - { - using std::runtime_error::runtime_error; - }; - /** * @param is the stream to read from * @param e the byte order of the source data. The Java edition -- cgit 0.0.5-2-1-g0f52