Skip to content

Commit 2f0146b

Browse files
mikirMi-La
authored andcommitted
[#634] Fix std::forward usage
1 parent 0d179c6 commit 2f0146b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/extensions/cpp/runtime/src/zserio/JsonDecoder.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class BasicJsonDecoder : public AllocatorHolder<ALLOC>
6767
template <typename T>
6868
DecoderResult(size_t numRead, T&& decodedValue, bool overflow, const ALLOC& allocator) :
6969
numReadChars(numRead),
70-
value(createValue(decodedValue, overflow, allocator)),
70+
value(createValue(std::forward<T>(decodedValue), overflow, allocator)),
7171
integerOverflow(overflow)
7272
{}
7373

0 commit comments

Comments
 (0)