S
Slawomir Lisznianski
Lack of support for SMFs in value classes limits their use quite a bit.
The C++/CLI Language Specification seem to contradict itself in a few
places regarding this matter too. For example, the code snippet at page
33 of C++/CLI Language Specification Working Draft 1.5, Jun, 2004 has a
point value class that uses constructors freely of various kinds. Yet
paragraph 21.4.1 of that same spec, states: "Value classes cannot have
SMFs (specifically, default constructor, copy constructor, assignment
operator, destructor, or finalizer."...)
The Beta 1 compiler of VC++ 2005 seems to agree with paragraph 21.4.1.
Slawomir Lisznianski [ www.rhapsodia.org ]
The C++/CLI Language Specification seem to contradict itself in a few
places regarding this matter too. For example, the code snippet at page
33 of C++/CLI Language Specification Working Draft 1.5, Jun, 2004 has a
point value class that uses constructors freely of various kinds. Yet
paragraph 21.4.1 of that same spec, states: "Value classes cannot have
SMFs (specifically, default constructor, copy constructor, assignment
operator, destructor, or finalizer."...)
The Beta 1 compiler of VC++ 2005 seems to agree with paragraph 21.4.1.
Slawomir Lisznianski [ www.rhapsodia.org ]