ciao.
ho il seguente warning:
c:\IFCXML\ifc\ifc\nillable-type.hxx(137): warning C4355: 'this' : used in base member initializer list
su questo costruttore:
codice:
complex_nillable_type (const complex_nillable_type& x,
xml_schema::flags f = 0,
xml_schema::container* c = 0)
: B (x, f, c), nil_ (x.nil_),
ref_ (xml_schema::idref (""), 0, this)
{
ref_ = x.ref_;
}
e non riesco a capire cosa vuole dire mi date una mano?
'this' : used in base member initializer list
The this pointer is valid only within nonstatic member functions. It cannot be used in the initializer list for a base class.
The base-class constructors and class member constructors are called before this constructor. In effect, you've passed a pointer to an unconstructed object to another constructor. If those other constructors access any members or call member functions on this, the result will be undefined. You should using the this pointer until all construction has completed.
This is a level-1 warning under Microsoft extensions (/Ze) and a level-4 warning otherwise.
The following sample generates C4355: