Types through a macro

K

Kaba

Here, the keyword "typename" is not allowed, since main is not a
template. However, the "typename" is required if Result was in fact a
dependent name to use the DEDUCTION macro in a context where typename
was required, for instance in:

You are right. I initially took this example out of its real context
(where there are always dependent names) to simplify and then
accidentally introduced the problem you describe. Good catch.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,223
Latest member
Jurgen2087

Latest Threads

Top