Explorar o código

Fix ambiguous error on some compilers.

Adam Ierymenko %!s(int64=8) %!d(string=hai) anos
pai
achega
7729cbe313
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      controller/JSONDB.cpp

+ 1 - 1
controller/JSONDB.cpp

@@ -20,7 +20,7 @@
 
 namespace ZeroTier {
 
-static const nlohmann::json _EMPTY_JSON({{}});
+static const nlohmann::json _EMPTY_JSON(nlohmann::json::object());
 
 bool JSONDB::put(const std::string &n,const nlohmann::json &obj)
 {