Skip to content

Commit 4153ba4

Browse files
authored
Merge pull request #372 from AntelopeIO/fix_bool_in_action_wrapper
[4.1.0] Fix action_wrapper failure if its first argument is a bool
2 parents 7028e80 + a53fc34 commit 4153ba4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libraries/eosiolib/contracts/eosio/action.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,11 @@ namespace eosio {
455455
template <typename T>
456456
struct is_same<T,bool> { static constexpr bool value = std::is_integral<T>::value; };
457457

458+
// Full specialization to resolve ambiguity introduced by partial specializations
459+
// of is_same<bool,U> and is_same<T,bool>
460+
template <>
461+
struct is_same<bool, bool> { static constexpr bool value = true; };
462+
458463
template <size_t N, size_t I, auto Arg, auto... Args>
459464
struct get_nth_impl { static constexpr auto value = get_nth_impl<N,I+1,Args...>::value; };
460465

0 commit comments

Comments
 (0)