fixed build for centos

dev
Bill 2 years ago
parent 11e64b2f0e
commit f949cf29f0

@ -261,6 +261,10 @@ std::string base62uuid(int l) {
return ret; return ret;
} }
template <>
inline const char* str(const bool& v) {
return v ? "true" : "false";
}
// template<typename _Ty> // template<typename _Ty>
// inline void vector_type<_Ty>::out(uint32_t n, const char* sep) const // inline void vector_type<_Ty>::out(uint32_t n, const char* sep) const

@ -6,9 +6,9 @@
#include <iostream> #include <iostream>
#include <chrono> #include <chrono>
#include "monetdb_conn.h" #include "monetdb_conn.h"
#include "monetdbe.h"
#include "threading.h" #include "threading.h"
#include "../csv.h" #include "../csv.h"
#include "table_ext_monetdb.hpp"
#ifdef _WIN32 #ifdef _WIN32
#include "winhelper.h" #include "winhelper.h"
#undef max #undef max

@ -9,9 +9,6 @@ template <class T>
inline const char* str(const T& v) { inline const char* str(const T& v) {
return ""; return "";
} }
template <>
inline const char* str(const bool& v) {
return v ? "true" : "false";
}
#include<string> #include<string>
extern std::string base62uuid(int l = 6); extern std::string base62uuid(int l = 6);
Loading…
Cancel
Save