Can a non-type template parameter be of type “void*”?
问题 Yakk - Adam Nevraumont said: Non-type template parameters of type void* are not allowed in at least some versions of the standard. Is this true? If it is true, in which versions of the standard are non-type template parameters of type void* not allowed? (Note: as noted in a comment to answer another comment, this is about non-type template parameters , not template type arguments , which can be any valid type-id per [temp.arg.type], including void* . 回答1: TL;DR Template parameters of type