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 C2313

'type1' : is caught by reference ('type2') on line number

The exception type has two handlers. The type for the second catch is a reference to the type of the first.

Example

#include <eh.h>
class C;
void main()
{
    try
    {
        throw "ooops!";
    }
    catch( C& ) {}
    catch( C ) {}   // error
}