From f949cf29f07f8e15eebb727821f88de8b8f4f11c Mon Sep 17 00:00:00 2001 From: Bill Date: Wed, 28 Sep 2022 21:54:23 +0800 Subject: [PATCH] fixed build for centos --- server/io.cpp | 4 ++++ server/pch.hpp | 2 +- server/utils.h | 5 +---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/server/io.cpp b/server/io.cpp index 6a70aca..694c7ce 100644 --- a/server/io.cpp +++ b/server/io.cpp @@ -261,6 +261,10 @@ std::string base62uuid(int l) { return ret; } +template <> +inline const char* str(const bool& v) { + return v ? "true" : "false"; +} // template // inline void vector_type<_Ty>::out(uint32_t n, const char* sep) const diff --git a/server/pch.hpp b/server/pch.hpp index 3c7f1e0..b37ac13 100644 --- a/server/pch.hpp +++ b/server/pch.hpp @@ -6,9 +6,9 @@ #include #include #include "monetdb_conn.h" -#include "monetdbe.h" #include "threading.h" #include "../csv.h" +#include "table_ext_monetdb.hpp" #ifdef _WIN32 #include "winhelper.h" #undef max diff --git a/server/utils.h b/server/utils.h index e54ed3c..fd38cb3 100644 --- a/server/utils.h +++ b/server/utils.h @@ -9,9 +9,6 @@ template inline const char* str(const T& v) { return ""; } -template <> -inline const char* str(const bool& v) { - return v ? "true" : "false"; -} + #include extern std::string base62uuid(int l = 6); \ No newline at end of file