소스 검색

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)
 {