summaryrefslogtreecommitdiff
path: root/include/io
diff options
context:
space:
mode:
authorljfa-ag <ljfa-ag@web.de>2015-08-06 10:27:06 +0200
committerljfa-ag <ljfa-ag@web.de>2015-08-06 10:27:06 +0200
commitb5cff8cc5c72c8d895e97075c0ab0f223cd81b09 (patch)
tree2fbc937b2ddab3cca102341caadd6c6cc6373d45 /include/io
parent7626425b2c6299b38865aa10c8d912e946f5f88f (diff)
downloadProject-Tick-b5cff8cc5c72c8d895e97075c0ab0f223cd81b09.tar.gz
Project-Tick-b5cff8cc5c72c8d895e97075c0ab0f223cd81b09.zip
Move input_error out from stream_reader
Diffstat (limited to 'include/io')
-rw-r--r--include/io/stream_reader.h12
1 files changed, 6 insertions, 6 deletions
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