From 29c7a4365f695abce13b392139c1b20b130a1947 Mon Sep 17 00:00:00 2001 From: Qianqian Fang Date: Sun, 20 Feb 2022 19:14:37 -0500 Subject: [PATCH] make is_bjdata const after using initializer list --- include/nlohmann/detail/output/binary_writer.hpp | 2 +- single_include/nlohmann/json.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/nlohmann/detail/output/binary_writer.hpp b/include/nlohmann/detail/output/binary_writer.hpp index 490cf63bb..0f994e89a 100644 --- a/include/nlohmann/detail/output/binary_writer.hpp +++ b/include/nlohmann/detail/output/binary_writer.hpp @@ -1694,7 +1694,7 @@ class binary_writer const bool is_little_endian = little_endianness(); /// whether to write in bjdata format - bool is_bjdata = false; + const bool is_bjdata = false; /// the output output_adapter_t oa = nullptr; diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 7e01ab952..92b916b3d 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -15518,7 +15518,7 @@ class binary_writer const bool is_little_endian = little_endianness(); /// whether to write in bjdata format - bool is_bjdata = false; + const bool is_bjdata = false; /// the output output_adapter_t oa = nullptr;