why does c allow default template arguments that can never be used?

But it can be used. Here’s an example.

auto* foo_ptr = &foo<>; // The default template argument is used.

A function call expression is not the only context where a function template’s arguments need to be figured out.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top