Reputation: 1260
In C++ I can do something like this:
template <typename T, T* Ptr>
class MyClass {};
I have two questions:
Where can I get a pointer other than nullptr in compile time?
How can I use this language feature? Of course, it would be interesting for practical cases, but it seems that this is a rather specific possibility, so an artificial example will also be suitable.
Upvotes: 0
Views: 91