KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
struct Div { int i; int j; }; class A { public: A(); Div& divs; }; In my constructor definition, I have the following implementation A::A(): divs(NULL) {} I get the following error: Error72 error C2354: 'A::divs' : initialization of reference member requires a temporary variable
Tags (comma-separated)
Save Edits
Cancel