How to intentionally cause a compile-time error on template instantiation

前端 未结 6 1337
南旧
南旧 2020-12-09 15:56

Sometimes when coding with C++ templates, you want to prevent users from instantiating a specific specialization or set of specializations, because the result would be nonse

6条回答
提交回复
热议问题