Skip to content

Commit

Permalink
disabling invoke_result test on gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
rparolin committed Feb 2, 2018
1 parent a941693 commit e1ee3f2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/source/TestFunctional.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -495,13 +495,19 @@ int TestFunctional()
static_assert(eastl::is_same<typename eastl::invoke_result<decltype(&TestStruct::value), eastl::reference_wrapper<TestStruct>>::type, int &>::value, "incorrect type for invoke_result");
static_assert(eastl::is_invocable<decltype(&TestStruct::GetValue), eastl::reference_wrapper<TestStruct>>::value, "incorrect value for is_invocable");
}

#ifndef EA_COMPILER_GNUC
{
TestStruct a(42);
EATEST_VERIFY(eastl::invoke(&TestStruct::GetValue, a) == 42);

static_assert(eastl::is_same<typename eastl::invoke_result<decltype(&TestStruct::GetValue), TestStruct *>::type, int>::value, "incorrect type for invoke_result");
static_assert(eastl::is_invocable<decltype(&TestStruct::GetValue), TestStruct *>::value, "incorrect value for is_invocable");
static_assert(
eastl::is_same<typename eastl::invoke_result<decltype(&TestStruct::GetValue), TestStruct*>::type, int>::value,
"incorrect type for invoke_result");

static_assert(eastl::is_invocable<decltype(&TestStruct::GetValue), TestStruct*>::value, "incorrect value for is_invocable");
}
#endif
{
TestFunctor f;
eastl::invoke(f);
Expand Down

0 comments on commit e1ee3f2

Please sign in to comment.