From 798f6ba0552d7fc7e27bbb44a22108a2ce21ab0e Mon Sep 17 00:00:00 2001 From: Darcy Beurle Date: Fri, 22 Dec 2017 22:48:20 +0100 Subject: [PATCH] CZString as public when using NVCC, see issue #486 --- include/json/value.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/json/value.h b/include/json/value.h index 67d0333..d1bf8ff 100644 --- a/include/json/value.h +++ b/include/json/value.h @@ -220,7 +220,14 @@ public: static const UInt64 maxUInt64; #endif // defined(JSON_HAS_INT64) +// Workaround for bug in the NVIDIAs CUDA 9.1 nvcc compiler +// when using gcc and clang backend compilers. CZString +// cannot be defined as private. See issue #486 +#ifdef __NVCC__ +public: +#else private: +#endif #ifndef JSONCPP_DOC_EXCLUDE_IMPLEMENTATION class CZString { public: