General Language Changes (C++/CLI)

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at General Language Changes (C++/CLI).

A number of CLR language features changed from Managed Extensions for C++ to Visual C++.

The changes described in this section are a sort of language miscellany. It includes a change in the handling of string literals, a change in the overload resolution between an ellipsis and the Param attribute, the change of typeof to typeid, a change in the calling of constructor initializer lists, and the introduction of a new cast notation, that of safe_cast.

String Literal
Discusses how the handling of string literals has changed.

Param Array and Ellipsis
Discusses how ParamArray is now given precedence over the ellipsis () for resolving function calls with varying numbers of arguments.

typeof Goes to T::typeid
Discusses how the typeof operator has been supplanted by typeid.

Initializer Lists
Discusses changes in the calling order of initializer lists.

Cast Notation and Introduction of safe_cast<>
Discusses changes to cast notation and in particular the introduction of safe_cast.

See Also

C++/CLI Migration Primer