summaryrefslogtreecommitdiff
path: root/binparse
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2021-01-25 23:23:04 +0100
committerDennis Brentjes <d.brentjes@gmail.com>2021-01-25 23:23:04 +0100
commit3cb35ec664734cfe04bf788b3a9c11402fd0f878 (patch)
treeeca552aab9a8cf6c7efd11830581fbc52855d9f1 /binparse
parent90c2782d0b78d64a19e7236c7dd6d8cc7a2e8396 (diff)
downloadopenwar-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')
-rw-r--r--binparse/CMakeLists.txt6
-rw-r--r--binparse/parse.cpp8
2 files changed, 6 insertions, 8 deletions
diff --git a/binparse/CMakeLists.txt b/binparse/CMakeLists.txt
index e436331..6c396e3 100644
--- a/binparse/CMakeLists.txt
+++ b/binparse/CMakeLists.txt
@@ -11,10 +11,6 @@ target_include_directories(binparse
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}
)
-target_compile_options(binparse
- PUBLIC "-std=c++14"
-)
-
target_link_libraries(binparse
PRIVATE fusion-utils
-) \ No newline at end of file
+)
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
+}