Skip to content

Commit 887e4e4

Browse files
committed
Fix C++20 compile error
1 parent c016d47 commit 887e4e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/CppSharp.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//
77
// Licensed under the MIT license
88
// ------------------------------------------------------------------------------------------- //
9+
// clang-format off
910
#pragma once
1011

1112
#if defined(__cplusplus_cli)
@@ -293,7 +294,7 @@ namespace clix {
293294
/// <param name="string">String to be marshalled to the other side</param>
294295
/// <returns>The marshaled representation of the string</returns>
295296
template<Encoding encoding, typename SourceType, class ResultType =
296-
typename detail::IfManaged<SourceType>::Select::Either<
297+
typename detail::IfManaged<SourceType>::Select::template Either<
297298
typename detail::StringTypeSelector<encoding>::Type,
298299
System::String^>::Type
299300
>

0 commit comments

Comments
 (0)