diff --git a/include/mettle/suite/make_suite.hpp b/include/mettle/suite/make_suite.hpp index bd41b95..0b3c14b 100644 --- a/include/mettle/suite/make_suite.hpp +++ b/include/mettle/suite/make_suite.hpp @@ -308,9 +308,9 @@ namespace mettle { Factory) : base(name, attrs) {} private: - template - detail::test_caller make_test_caller(T &&test) { - return {base::setup_, base::teardown_, std::forward(test)}; + detail::test_caller + make_test_caller(typename base::function_type &&test) { + return {base::setup_, base::teardown_, std::move(test)}; } template @@ -336,10 +336,9 @@ namespace mettle { Factory factory) : base(name, attrs), factory_(factory) {} private: - template detail::fixture_test_caller - make_test_caller(T &&test) { - return {{base::setup_, base::teardown_, std::forward(test)}, factory_}; + make_test_caller(typename base::function_type &&test) { + return {{base::setup_, base::teardown_, std::move(test)}, factory_}; } template