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 C2287

'class': inheritance representation: 'representation1' is less general than the required 'representation2'

A class is declared with a simpler representation than required.

Compiling the following code with /vmg ("General-purpose always" representation) causes C2287.

Example

class __single_inheritance X;

struct A { };
struct B { };
struct X : A, B { };  // error, X uses multiple inheritance