From a226d7d00b45074673786ff8befed99ec724d850 Mon Sep 17 00:00:00 2001 From: Ross Schlaikjer Date: Mon, 4 Nov 2024 10:54:14 +0900 Subject: [PATCH] Actually delete invalid ctor to turn link error into compiler error --- include/rapidjson/document.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h index 74089cb9bf..616bedeb78 100644 --- a/include/rapidjson/document.h +++ b/include/rapidjson/document.h @@ -698,7 +698,7 @@ class GenericValue { private: //! Copy constructor is not permitted. - GenericValue(const GenericValue& rhs); + GenericValue(const GenericValue& rhs) = delete; #if RAPIDJSON_HAS_CXX11_RVALUE_REFS //! Moving from a GenericDocument is not permitted.