diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/io/stream_reader.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/io/stream_reader.h b/include/io/stream_reader.h index ab07f83ad9..5d10e021ed 100644 --- a/include/io/stream_reader.h +++ b/include/io/stream_reader.h @@ -65,8 +65,7 @@ public: /** * @brief Reads a binary number from the stream - * - * Does not check if the reading actually succeeds + * @throw input_error on failure */ template<class T> void read_num(T& x); @@ -85,6 +84,12 @@ private: const endian::endian endian; }; +template<class T> +void stream_reader::read_num(T& x) +{ + endian::read(is, x, endian); +} + } } |
