|
|
1
11
我们可以从下面的螺栓中看到 example 根据clang和MSVC的说法,这是格式错误的,请查看 显式实例化 部分 [temp.explicit] 我认为gcc没有任何理由接受它。 我认为这篇文章“可能”的主题是:
确实如此 is well-formed with gcc/clang/MSVC . 看起来C++11之前的版本允许使用此语法,请参见 defect report 1707: template in elaborated-type-specifier without nested-name-specifier ( 重点矿山 ):
所以这更有意义
with this comment
那个
其他的 answerer filed two bug reports . cppreference公司 has a good dicssuion of Explicit instantiation 这个问题 Explicit instantiation - when is it used? 解释了为什么这很有用的更多细节。 另请注意,我们可以看到 Meta post: Links being changed to cppreference.com 已知该网站的信息不正确,通常社区倾向于 cppreference 作为可靠的C++参考。 |
|
|
2
9
我在这里看到两个bug:
据报道,前者为 GCC bug 87781 ,后者为 GCC bug 87783 . 更新: GCC错误87781 现在由修复 r266285 . |
|
AstralHex · 矩阵乘法代码工作不正常 1 年前 |
|
|
Fishie · 作为类成员的智能指针是否仍然自动释放?[关闭] 1 年前 |
|
|
Die4Toast · 递归调用成员箭头运算符-> 1 年前 |
|
|
Anka Hanım · 关于结构和动态数组地址的问题 1 年前 |