From 32649a1ab11bd541de51237f01897608de65e76a Mon Sep 17 00:00:00 2001 From: George Sedov Date: Wed, 2 Aug 2023 00:21:53 +0200 Subject: [PATCH] small fix to readme --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4f26e30ff..6643fe1cc 100644 --- a/README.md +++ b/README.md @@ -858,6 +858,7 @@ namespace ns { Or in case if you use some naming convention that you do not want to expose to JSON: ```cpp +namespace ns { class address { private: std::string m_street; @@ -865,7 +866,9 @@ Or in case if you use some naming convention that you do not want to expose to J int m_postcode; public: - NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_NAMES(address, "street", m_street, "housenumber", m_housenumber, "postcode", m_postcode) + NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_NAMES(address, "street", m_street, + "housenumber", m_housenumber, + "postcode", m_postcode) }; } ```