2
0
Эх сурвалжийг харах

Fix ambiguous error on some compilers.

Adam Ierymenko 8 жил өмнө
parent
commit
7729cbe313

+ 1 - 1
controller/JSONDB.cpp

@@ -20,7 +20,7 @@
 
 
 namespace ZeroTier {
 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)
 bool JSONDB::put(const std::string &n,const nlohmann::json &obj)
 {
 {