The Value of a Value Class

A reader questions the nature of the value type when he writes,   Sender: Slawomir Lisznianski=====================================1) Lack of support for SMFs makes value classes unnatural to use. An example in the C++/CLI spec at page 33 is incorrect, as it uses constructors with value classes. In fact, quite a few value class examples in the…

9

String Literal Conversion to String: Is It a Disaster?

A reader asks,   Sender: Jackre: String Literals are now a Trivial Conversion to StringWon’t it break most of existing libraries who will try to port to C++/CLI? One override for String^ will break a lot of user code and make calls for the overriden function with string literals look much uglier. Maybe it is…

1

String Literal Conversion to String: Is It a Disaster?

A reader asks,   Sender: Jackre: String Literals are now a Trivial Conversion to StringWon’t it break most of existing libraries who will try to port to C++/CLI? One override for String^ will break a lot of user code and make calls for the overriden function with string literals look much uglier. Maybe it is…


String Literals are now a Trivial Conversion to String

  There was a recent internal thread on the resolution of the following set of overloaded member functions of a reference class R. It represents a change in the earlier definition of C++/CLI, and a difference in type behavior that I reported in an earlier blog, and so I believe it is worth discussing. Here…

6