如何为嵌套模板类提供推导

如何为嵌套模板类提供推导

本文介绍了如何为嵌套模板类提供推导?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据[]:

但是下面的示例似乎未在两个和包含以下句子:

这表明您的示例应该可以工作-成员类模板明确支持推导指南,只要它们是在相同的作用域和访问权限中声明(这将是类作用域和 public -检查并检查)。

This suggests that your example should work - deduction guides are explicitly supported for member class templates, as long as they're declared in the same scope and access (which would be the class scope and public - check and check).

这是(由Richard Smith提出)。

This is gcc bug 79501 (filed by Richard Smith).

这篇关于如何为嵌套模板类提供推导?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-23 12:21