diff --git a/implementation/method_selection.h b/implementation/method_selection.h index 96fa4177..fdd8079a 100644 --- a/implementation/method_selection.h +++ b/implementation/method_selection.h @@ -462,7 +462,7 @@ struct PermutationSelectionForArgs { typename MethodSelectionForArgs::template FindPermutation; static constexpr bool kIsValidArgSet = - MethodSelectionForArgs::template ArgSetViable; + MethodSelectionForArgs::template ArgSetViable(); using PermutationRef = PermutationRef; diff --git a/metaprogramming/function_traits_test.cc b/metaprogramming/function_traits_test.cc index a9c1f0b0..81b6c68b 100644 --- a/metaprogramming/function_traits_test.cc +++ b/metaprogramming/function_traits_test.cc @@ -124,4 +124,16 @@ TEST(FunctionTraits, MemberFunctions) { int>); } +TEST(FunctionTraits, + UseFunctionsSoCompilerDoesntEmitWarningsAboutDiscardingThem) { + VFoo(); + VFoo_I(1); + VFoo_II(1, 2); + VFoo_III(1, 2, 3); + + VFoo_F(1.f); + VFoo_FF(1.f, 2.f); + VFoo_FFF(1.f, 2.f, 3.f); +} + } // namespace