Skip to content

Commit

Permalink
Silenced MSVC initializer error
Browse files Browse the repository at this point in the history
  • Loading branch information
codemercenary committed Jul 30, 2014
1 parent 6588d00 commit 3c259ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contrib/json11/json11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ class JsonNull final : public Value<Json::NUL, std::nullptr_t> {
* Static globals - static-init-safe
*/
struct Statics {
Statics() {}

const std::shared_ptr<JsonValue> null = make_shared<JsonNull>();
const std::shared_ptr<JsonValue> t = make_shared<JsonBoolean>(true);
const std::shared_ptr<JsonValue> f = make_shared<JsonBoolean>(false);
Expand Down

0 comments on commit 3c259ff

Please sign in to comment.