Skip to content

Commit 6a46e30

Browse files
committed
msvc compile err fix.
1 parent dfa2244 commit 6a46e30

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ReflectionTemplateLib/rtl/rtl_function_erased_return.hpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,23 @@ namespace rtl
3434
}
3535

3636

37+
#if defined(__GNUC__) || defined(__clang__)
3738
template<class ...signature_t>
3839
template<class ...args_t>
3940
requires (std::is_same_v<traits::normal_sign_id_t<args_t...>, std::tuple<signature_t...>>)
4041
inline constexpr const typename function<Return(signature_t...)>::template perfect_fwd<args_t...>
4142
function<Return(signature_t...)>::bind() const noexcept {
4243
return perfect_fwd<args_t...>{ *this };
4344
}
45+
#else
46+
template<class ...signature_t>
47+
template<class ...args_t>
48+
requires (std::is_same_v<traits::normal_sign_id_t<args_t...>, std::tuple<signature_t...>>)
49+
inline constexpr const function<Return(signature_t...)>::perfect_fwd<args_t...>
50+
function<Return(signature_t...)>::bind() const noexcept {
51+
return perfect_fwd<args_t...>{ *this };
52+
}
53+
#endif
4454

4555

4656
template<class ...signature_t>

0 commit comments

Comments
 (0)