Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
object 'class' can never be instantiated - user-defined constructor required
Remarks
The class has no user-defined or default constructors. No instantiation is performed.
Example
The following example generates C4610:
// C4610.cpp
// compile with: /W4
struct A {
int &j;
A& A::operator=( const A& );
}; // C4610
/* use this structure definition to resolve the warning
struct B {
int &k;
B(int i = 0) : k(i) {
}
B& B::operator=( const B& );
} b;
*/
int main() {
}