M
Marcin Kalicinski
Hi,
Why local structs/classes cannot be used as template parameters?
void f(std::list &l)
{
struct Cmp { /*...*/ };
l.sort(Cmp()); // Error here
}
Best regards,
Marcin
Why local structs/classes cannot be used as template parameters?
void f(std::list &l)
{
struct Cmp { /*...*/ };
l.sort(Cmp()); // Error here
}
Best regards,
Marcin