NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error C2464

'identifier' : cannot use 'new' to allocate a reference

A reference identifier was allocated with the new operator. References are not memory objects, so new cannot return a pointer to them. Use the standard variable declaration syntax to declare a reference.

Example

void main()
{
    new ( int& ir );   // error
}