Stephen R. G. Fraser wrote:
Are or will delegating constructors (constructors that can call
sibling constructors) be available for ref classes or only for native
classes?
The CLI/C++ specs seems to say that it is a native class thing so I
just want to make sure so that I can include/exclude it from the
revision of my book.
(I also can't seem to get it to work for a ref class, if it is
supported.)
Forwaring constructors aren't supported by the C++ language at all. There's
currently a proposal to the C++ committee to add that ability in the next
rev of the C++ standard, but that's still 4+ years away.
That said, I haven't looked at what the C++/CLI spec says in this regard.
If they are supported, I'd expect it would be for ref types only, since
they're definitely NOT supported for native types.
-cd