x<char>仅需要实例化一次,而在第一个静态断言中将其命名时,只需在ch之前将其实例化即可.但是[temp.point]/8也说x<char> need only be instantiated once, and it's not when it's named in the first static assertion, only before ch. But, [temp.point]/8 also says和is_complete_helper::test 是成员函数模板,其声明在静态断言之前被实例化.因此,它也必须在TU的末尾具有实例化.在哪里可能会给出不同的结果.因此,此特征取决于不良的NDR构造.And is_complete_helper::test is a member function template whose declaration is instantiated before the static assertion. So it must also have an instantiation at the end of the TU. Where it will likely give a different result. So this trait is depending on an ill-formed NDR construct. 这篇关于如果专业化已经被隐式实例化了,它是否被隐式实例化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-18 13:01