Skip to content

Commit 7de78c6

Browse files
More AEGIS build stuff
1 parent bfed4b3 commit 7de78c6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

json_pack_base.h

+5
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,12 @@ namespace classdesc
526526
a.clear();
527527
for (size_t i=0; i<arr.size(); ++i)
528528
{
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
529533
typename NonConstKeyValueType<typename T::value_type>::T v;
534+
#endif
530535
json_unpack_t j(arr[i]);
531536
json_unpack(j,"",v);
532537
a.insert(v);

0 commit comments

Comments
 (0)