We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfed4b3 commit 7de78c6Copy full SHA for 7de78c6
json_pack_base.h
@@ -526,7 +526,12 @@ namespace classdesc
526
a.clear();
527
for (size_t i=0; i<arr.size(); ++i)
528
{
529
+ // certain linters fail to recognise that this variable is initialised in the json_unpack call
530
+#if defined(__cplusplus) && __cplusplus>=201103L
531
+ typename NonConstKeyValueType<typename T::value_type>::T v{};
532
+#else
533
typename NonConstKeyValueType<typename T::value_type>::T v;
534
+#endif
535
json_unpack_t j(arr[i]);
536
json_unpack(j,"",v);
537
a.insert(v);
0 commit comments