#include <iostream>

template <int I1, int I2>
struct adder { };

template <typename A, int I>
struct fusedmultiplyadder { };

template <int i1, int i2, int i3>
void foo(fusedmultiplyadder<adder<i1, i2>, i3>)
{
   std::cout << "fma: " << i1 << ", " << i2 << ", " << i3 << std::endl;
}

int main()
{
   fusedmultiplyadder<adder<2, 3>, 4> fma;
   foo(fma);
   return 0;
}