Skip to content

Commit ceebbad

Browse files
Fix WillOnce(Return(...)) error
1 parent b99f7fe commit ceebbad

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

googlemock/include/gmock/gmock-actions.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,10 @@ class OnceAction<Result(Args...)> final {
452452
// traits above.
453453
internal::negation<std::is_same<
454454
OnceAction, typename std::decay<Callable>::type>>,
455+
#if defined(__QNX__) and ___QNX__ < 800
456+
internal::negation<std::is_same<
457+
typename std::tuple<OnceAction&&>, typename std::decay<Callable>::type>>,
458+
#endif
455459
IsDirectlyCompatible<Callable>> //
456460
::value,
457461
int>::type = 0>
@@ -469,6 +473,10 @@ class OnceAction<Result(Args...)> final {
469473
// traits above.
470474
internal::negation<std::is_same<
471475
OnceAction, typename std::decay<Callable>::type>>,
476+
#if defined(__QNX__) and ___QNX__ < 800
477+
internal::negation<std::is_same<
478+
typename std::tuple<OnceAction&&>, typename std::decay<Callable>::type>>,
479+
#endif
472480
// Exclude callables for which the overload above works.
473481
// We'd rather provide the arguments if possible.
474482
internal::negation<IsDirectlyCompatible<Callable>>,

0 commit comments

Comments
 (0)