diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2021-01-25 23:23:04 +0100 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2021-01-25 23:23:04 +0100 |
| commit | 3cb35ec664734cfe04bf788b3a9c11402fd0f878 (patch) | |
| tree | eca552aab9a8cf6c7efd11830581fbc52855d9f1 /binparse/parse.cpp | |
| parent | 90c2782d0b78d64a19e7236c7dd6d8cc7a2e8396 (diff) | |
| download | openwar-3cb35ec664734cfe04bf788b3a9c11402fd0f878.tar.gz openwar-3cb35ec664734cfe04bf788b3a9c11402fd0f878.tar.bz2 openwar-3cb35ec664734cfe04bf788b3a9c11402fd0f878.zip | |
Fixes the build for c++20 and new version of boost
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 +} |
