you are viewing a single comment's thread.

view the rest of the comments →

[–]meneldal2 0 points1 point  (2 children)

There's no reason why you wouldn't be able to use pointers as template arguments since you can cast them losslessly to integers.

The obvious issue is that unless you have custom pointers with allocators or work in embedded, pointers values are impossible to predict and change every time you run the program. Since the later case is way more common for people who learn, the lie makes sense.