View Single Post
Old 07-03-2005, 06:44 AM   #3 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
Ah here it is. I've quoted it for you so you can draw your own conclusions:

Quote:
12.1 Constructors

12 Special member functions

5: A default constructor for a class X is a constructor of class X that can be called without an argument. If
there is no userdeclared
constructor for class X, a default constructor is implicitly declared. An implicitlydeclared
default constructor is an inline public member of its class. A constructor is trivial if it is an
implicitlydeclared
default constructor and if:
— its class has no virtual functions (10.3) and no virtual base classes (10.1), and
— all the direct base classes of its class have trivial constructors, and
— for all the nonstatic data members of its class that are of class type (or array thereof), each such class has
a trivial constructor.

6 :Otherwise, the constructor is nontrivial.

7: An implicitlydeclared
default constructor for a class is implicitly defined when it is used to create an object
of its class type (1.8). The implicitlydefined
default constructor performs the set of initializations of the
class that would be performed by a userwritten
default constructor for that class with an empty meminitializerlist
(12.6.2) and an empty function body. If that userwritten
default constructor would be illformed,
the program is illformed.
Before the implicitlydeclared
default constructor for a class is implicitly
defined, all the implicitlydeclared
default constructors for its base classes and its nonstatic data members
shall have been implicitly defined. [Note: an implicitlydeclared
default constructor has an exceptionspecification
(15.4). ]
__________________
Valmont is offline   Reply With Quote