... | ... | @@ -73,6 +73,19 @@ _Restrictions_ |
|
|
|
|
|
## 5.1.1.5 Constructors
|
|
|
|
|
|
_Restrictions_
|
|
|
|
|
|
| rule | text | conformance |
|
|
|
| ------ | ------ | :------: |
|
|
|
|a|All formal parameters of the constructor shall be in parameters.|:x:|
|
|
|
|b|The constructor body shall not assign anything to variables that are not local to the constructor body or accessible fields of the class the constructor belongs to.|:x:|
|
|
|
|c|The constructor body shall not use blocking operations.|:x:|
|
|
|
|d|The initialization of a member field shall not invoke any member function in the object being initialized.|:x:|
|
|
|
|e|The constructor body shall not invoke any member function in the object being initialized.|:x:|
|
|
|
|f|A member constant or template shall be initialized exactly once, either by its initialization part or by at most one constructor body.|:x:|
|
|
|
|g|Direct or indirect cyclic initialization is not allowed. That is the initializer of a field shall not use the same field directly or indirectly.|:x:|
|
|
|
|h|The initializer of a field shall not use a field that does not have an initializer.|:x:|
|
|
|
|
|
|
## 5.1.1.6 Constructor invocation
|
|
|
|
|
|
## 5.1.1.7 Destructors
|
... | ... | |