关于变长参数
  • 板块学术版
  • 楼主Mr_Eightkkksd03
  • 当前回复3
  • 已保存回复3
  • 发布时间2021/3/30 17:42
  • 上次更新2023/11/5 01:22:08
查看原帖
关于变长参数
273371
Mr_Eightkkksd03楼主2021/3/30 17:42
template<class T,class... Args>
inline void read(T& t,Args&... args) {
	read(t);
	read(args...);
}

我在代码里加了这个快读方式,然后编译器警告:

[Warning] variadic templates only available with -std=c++11 or -std=gnu++11

但仍然通过了编译。

所以比赛时如果没开c++11,用这个会CE吗?

(洛谷IDE选C++任何版本都没问题)

orz

2021/3/30 17:42
加载中...