From 2c81be72eef5363736cf1892646c74a3311ee4c1 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Sun, 22 May 2022 17:03:17 -0400 Subject: add upstream 11.21 --- zen/serialize.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'zen/serialize.h') diff --git a/zen/serialize.h b/zen/serialize.h index f9677630..b2561808 100644 --- a/zen/serialize.h +++ b/zen/serialize.h @@ -8,9 +8,9 @@ #define SERIALIZE_H_839405783574356 #include -#include -#include -#include "string_base.h" +//#include +//#include +//#include "string_base.h" #include "sys_error.h" //keep header clean from specific stream implementations! (e.g.file_io.h)! used by abstract.h! @@ -206,7 +206,7 @@ void writeArray(BufferedOutputStream& stream, const void* buffer, size_t len) template inline void writeNumber(BufferedOutputStream& stream, const N& num) { - static_assert(IsArithmeticV || std::is_same_v || std::is_enum_v); + static_assert(isArithmetic || std::is_same_v || std::is_enum_v); writeArray(stream, &num, sizeof(N)); } @@ -234,7 +234,7 @@ void readArray(BufferedInputStream& stream, void* buffer, size_t len) //throw Sy template inline N readNumber(BufferedInputStream& stream) //throw SysErrorUnexpectedEos { - static_assert(IsArithmeticV || std::is_same_v || std::is_enum_v); + static_assert(isArithmetic || std::is_same_v || std::is_enum_v); N num{}; readArray(stream, &num, sizeof(N)); //throw SysErrorUnexpectedEos return num; -- cgit