腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
n3290 :精心设计的类型说明符语法改变了吗?
c++
、
c++11
2003年C++03文档的要点: "An elaborated-type-
specifier
may be
used
to refer to a: class-key
nested
-
name
-specifieropt7.1.5.3 Elaborat
浏览 2
提问于2011-08-22
得票数 0
2
回答
你应该在虚拟继承中写"public virtual“还是"virtual public”?
c++
、
inheritance
、
virtual-inheritance
基于{}; class Mammal : public virtual Animal ...我还看到一些书使用下面的语法,{};谢谢
浏览 2
提问于2011-03-29
得票数 9
回答已采纳
1
回答
typename关键字和嵌套名称说明符
c++
、
templates
、
typename
、
dependent-name
struct A{}; struct B typename ::A a1; //(1)}; 为什么第一种情况是正确的,而第二种情况不是正确的?我不明白这个限制的意思。
浏览 4
提问于2015-01-06
得票数 4
回答已采纳
1
回答
为什么GCC在std::tuple_size::value的约束上成功,而在std::tuple_size_v的约束上失败呢?
c++
、
c++20
、
c++-concepts
false constexpr bool intIsPair3 = IsPair3<int>; // error: incomplete type 'std::tuple_s
浏览 1
提问于2021-06-26
得票数 2
回答已采纳
1
回答
接受变量参数的GMOCK方法
c++
、
googlemock
.)>' does not
name
a type ^ error: incompletetype 'testing::
浏览 5
提问于2017-09-28
得票数 5
回答已采纳
2
回答
C++11声明‘::t i`?
c++
、
c++11
simple-type-
specifier
应该与::T匹配,但语法是:
nested
-
name
-
specifier
_opt type-
name
nested
-
name
-
specifier
不能单独与::匹配,因此simple-type-
specifier
不能与::T匹配。
浏览 0
提问于2013-08-14
得票数 10
回答已采纳
1
回答
模板构造函数继承的标准符合语法是什么?
c++
、
c++11
、
constructor
、
using-statement
prog.cpp:8:24: error: ‘template<class T> class Baseclass’
used
without template parameters using
浏览 0
提问于2014-09-19
得票数 10
回答已采纳
4
回答
在限定名称查找中,::运算符是否会出现在与范围解析不同的上下文中?
c++
、
operator-keyword
、
scope-resolution
作为已知的范围解析操作符,用于限定名称查找。但是,::返回的值是什么?据我所知,它是后缀一元运算符。请考虑以下几点:{} 你能解释一下这种行为吗?
浏览 11
提问于2014-06-01
得票数 6
回答已采纳
4
回答
命名空间中类定义样式的有效性
c++
摘要:namespace N { class X; }详细信息:// n_x.h - style 1 class X;和namespace N {} class Y { ... };这里的主要区别是样式1中的class N::X和样式2中的namespace
浏览 6
提问于2014-08-29
得票数 3
回答已采纳
2
回答
什么是qualified id/
name
和unqualified id/
name
?
c++
我想知道是否有人能解释一下这些术语,因为我在很多地方都遇到了它们。我知道一些关于它们的基本理论,但我不确定我所知道的是对还是错。
浏览 0
提问于2011-08-31
得票数 69
回答已采纳
3
回答
当尝试与类型定义函数建立好友关系时,出现“详细的类型引用类型定义函数”错误
c++
、
templates
、
typedef
假设我有下面这段代码(一个简单的CRTP类层次结构)。我想要对基类类型进行类型定义,以节省我自己的输入(在我的实际代码中,我多次使用基类类型,并且基类接受几个模板参数),并且我需要与基类成为好友,因为我想保持实现是私有的。class Baseclass Derived : public Base< Derived<
浏览 1
提问于2013-01-31
得票数 7
回答已采纳
1
回答
在创建类定义时使用类类型作为模板参数类型
c++
、
templates
public BaseCmd<Cmd1::A> { struct A { };但我错了:你能这样定义它吗?
浏览 10
提问于2022-01-05
得票数 1
回答已采纳
4
回答
int a是什么意思?
c++
、
declaration
、
definition
实际上 decl-
specifier
-seq_opt init-declarator-list_opt ; //type-
specifier
: class-
specifier
enum-<
浏览 0
提问于2014-05-14
得票数 0
1
回答
在列表、命名空间中嵌套名称说明符中的不完全类型
c++
、
list
、
struct
timers();当我尝试编译我的程序时,它显示:为什么我不能在下一个结构中使用我的结构作为列表?
浏览 5
提问于2016-06-20
得票数 1
回答已采纳
2
回答
什么是嵌套名称说明符?
c++
、
names
int main(){ p->::S::f(); ::S(); // Is ::S a
nested
name
specifier
?
浏览 1
提问于2010-11-05
得票数 31
1
回答
如何从C++标准推断数组[]比指针具有更高的优先级?
c++
、
arrays
、
language-lawyer
、
grammar
、
declaration
我知道像这样的声明将a声明为指向int的5个指针的数组。但是,仅仅通过使用C++标准,我如何推断这一点呢?
浏览 2
提问于2021-04-26
得票数 7
5
回答
解密类型在gcc 4.3.2中不能正常工作吗?
c++
、
c++11
、
decltype
#include <iostream>using namespace std; { decltype(x) y = 10; decltype(m) n;} main.cpp:11: error: expected initia
浏览 0
提问于2011-03-10
得票数 2
回答已采纳
3
回答
嵌套名称说明符中使用的类型不完整
c++
、
circular-dependency
myException():std::exception() B::b2(); //error: incomplete type ‘A::B’
used
in
nested
name
specifier
}; { {
浏览 1
提问于2015-03-24
得票数 1
回答已采纳
1
回答
为什么标准C++语法不包括这种情况?
c++
、
c++11
、
language-lawyer
、
grammar
、
c++03
class-head是由标准中的这个语法定义的: class-key identifier(optional) base-clause(optional) class-key
nested
-
name
-
specifier
(optional) template-id base-clause(optional) 由于
n
浏览 0
提问于2016-05-10
得票数 7
回答已采纳
1
回答
如何从打开的窗口列表中检索QWidget
c++
、
qt
、
c++11
编译器说: for(QWidget *window : QApplication
浏览 10
提问于2016-08-20
得票数 2
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
ICS Project 小贴士 Week 3
ORACLE 数据库巡检报告脚本
SonarLint for Eclipse 3.6 发布,可激活或停用任意规则
2017年StackOverflow上最好的20个Python问题
Oracle常用经典SQL查询(一)
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券