diff options
Diffstat (limited to 'binparse/parse.cpp')
| -rw-r--r-- | binparse/parse.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/binparse/parse.cpp b/binparse/parse.cpp index de0f04d..6887f43 100644 --- a/binparse/parse.cpp +++ b/binparse/parse.cpp @@ -1,12 +1,14 @@ #include "parse.hpp" +#include <istream> + namespace binparse { UnexpectedEOS::UnexpectedEOS() : std::runtime_error("Unexpected end of stream.") {} -UnexpectedEOS::UnexpectedEOS(std::__cxx11::string location) +UnexpectedEOS::UnexpectedEOS(std::string location) : std::runtime_error("Unexpected end of stream after " + location) {} @@ -80,7 +82,7 @@ Offset16 parse<Offset16>(std::istream& is, std::string name) { } template<> -Value24 parse<Value24>(std::istream& is, std::__cxx11::string name) +Value24 parse<Value24>(std::istream& is, std::string name) { return Value24(parse<std::array<uint8_t, 3>>(is, name)); } @@ -147,4 +149,4 @@ void dump_bytes(std::istream& is, std::vector<uint8_t>& buffer, std::string name } } -}
\ No newline at end of file +} |
