Преглед изворни кода

Fix ambiguous error on some compilers.

Adam Ierymenko пре 8 година
родитељ
комит
7729cbe313
1 измењених фајлова са 1 додато и 1 уклоњено
  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)
 {