I\'m trying to pass function std::max as template parameter to a templated function, but for some reasons compiler prints error that function type cannot be ded
std::max
std::max has more than one template overloads; you can use static_cast to specify which one should be used.
static_cast may also be used to disambiguate function overloads by performing a function-to-pointer conversion to specific type
static_cast
e.g.
auto f = static_cast(std::max);