We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d179c6 commit 2f0146bCopy full SHA for 2f0146b
compiler/extensions/cpp/runtime/src/zserio/JsonDecoder.h
@@ -67,7 +67,7 @@ class BasicJsonDecoder : public AllocatorHolder<ALLOC>
67
template <typename T>
68
DecoderResult(size_t numRead, T&& decodedValue, bool overflow, const ALLOC& allocator) :
69
numReadChars(numRead),
70
- value(createValue(decodedValue, overflow, allocator)),
+ value(createValue(std::forward<T>(decodedValue), overflow, allocator)),
71
integerOverflow(overflow)
72
{}
73
0 commit comments