From 3cb35ec664734cfe04bf788b3a9c11402fd0f878 Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Mon, 25 Jan 2021 23:23:04 +0100 Subject: Fixes the build for c++20 and new version of boost --- binparse/parse.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'binparse/parse.cpp') 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 + 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(std::istream& is, std::string name) { } template<> -Value24 parse(std::istream& is, std::__cxx11::string name) +Value24 parse(std::istream& is, std::string name) { return Value24(parse>(is, name)); } @@ -147,4 +149,4 @@ void dump_bytes(std::istream& is, std::vector& buffer, std::string name } } -} \ No newline at end of file +} -- cgit v1.2.3-70-g09d2