2

Since it's possible to use primitive types as template arguments, I was wondering if it was possible for a pointer type?

In my mind it makes no sense since a fixed pointer can't exist, so the compiler shouldn't be able to construct the assembly for such templates but I might be surprised!

Example:

template <FILE *stream = stdout>
class A;
Nathanael Demacon
  • 1,169
  • 7
  • 19

0 Answers0