3

I was reading through the C++03 standard and noticed the usage of "Clause 10". Example:

8.5.1 Aggregates [dcl.init.aggr]

  1. An aggregate is an array or a class (clause 9) with no user-declared constructors (12.1), no private or protected non-static data members (clause 11), no base classes (clause 10), and no virtual functions (10.3).

There is also Clause 9 and Clause 11. What does this mean, is it referring to some other section in the standard?

4

2 回答 2

9

The clause is the topmost hierarchical thingy, i.e., clause 10 is §10. Informally people refer to those as "sections", but the standard calls them "clauses".

于 2012-05-29T16:59:22.453 回答
1

这是什么意思,是指标准中的其他部分吗?

是的,它指的是“章节”。例如。第 9 条类。

于 2012-05-29T17:00:38.767 回答