File tree 3 files changed +4
-6
lines changed
provides/include/testing_v1 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -39,5 +39,5 @@ template <class Action> class testing_v1::Private::test_t : test_base_t {
39
39
40
40
void run () override ;
41
41
42
- std:: conditional_t <std::is_function_v< Action>, Action *, Action> action;
42
+ Action action;
43
43
};
Original file line number Diff line number Diff line change @@ -21,8 +21,7 @@ template <class Action> struct test_t : Private::test_t<Action> {
21
21
22
22
// / Creates and registers a test action and should only be used at namespace
23
23
// / scope.
24
- template <class Action >
25
- test_t <std::remove_cvref_t <Action>> test (Action &&action);
24
+ template <class Action > test_t <std::decay_t <Action>> test (Action &&action);
26
25
27
26
// / Prints `FAIL` and `exit(1)`s the program if the result is false.
28
27
void verify (bool result);
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ testing_v1::test_t<Action>::test_t(ForwardableAction &&action)
19
19
: Private::test_t <Action>(std::forward<ForwardableAction>(action)) {}
20
20
21
21
template <class Action >
22
- testing_v1::test_t <std::remove_cvref_t <Action>>
23
- testing_v1::test (Action &&action) {
24
- return test_t <std::remove_cvref_t <Action>>(std::forward<Action>(action));
22
+ testing_v1::test_t <std::decay_t <Action>> testing_v1::test (Action &&action) {
23
+ return test_t <std::decay_t <Action>>(std::forward<Action>(action));
25
24
}
You can’t perform that action at this time.
0 commit comments