From 2d570a8faaea4bc07da413086c361639806f350c Mon Sep 17 00:00:00 2001 From: Lin Zhihao <59785146+LinZhihao-723@users.noreply.github.com> Date: Thu, 25 Apr 2024 16:23:00 -0400 Subject: [PATCH] Adding `typename` for dependent names for disambiguration purpose. --- cpp/src/ffi_go/ir/decoder.cpp | 2 +- cpp/src/ffi_go/ir/encoder.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/src/ffi_go/ir/decoder.cpp b/cpp/src/ffi_go/ir/decoder.cpp index 5251e7f..c891e59 100644 --- a/cpp/src/ffi_go/ir/decoder.cpp +++ b/cpp/src/ffi_go/ir/decoder.cpp @@ -29,7 +29,7 @@ namespace { void* ir_decoder, StringView* log_msg_view ) -> int { - using encoded_var_t = std::conditional< + using encoded_var_t = typename std::conditional< std::is_same_v, ffi::eight_byte_encoded_variable_t, ffi::four_byte_encoded_variable_t>::type; diff --git a/cpp/src/ffi_go/ir/encoder.cpp b/cpp/src/ffi_go/ir/encoder.cpp index 636d277..fc509c9 100644 --- a/cpp/src/ffi_go/ir/encoder.cpp +++ b/cpp/src/ffi_go/ir/encoder.cpp @@ -30,7 +30,7 @@ namespace { StringView* dict_vars, Int32tSpan* dict_var_end_offsets ) -> int { - using encoded_var_t = std::conditional< + using encoded_var_t = typename std::conditional< std::is_same_v, ffi::eight_byte_encoded_variable_t, ffi::four_byte_encoded_variable_t>::type;