Most vexing parse
What does the following declaration mean?
struct Foo {};
struct Bar {
Bar(Foo) {}
};
int main() {
Bar b(Foo());
}
Sign in to answer questions and track your progress
Sign InWhat does the following declaration mean?
struct Foo {};
struct Bar {
Bar(Foo) {}
};
int main() {
Bar b(Foo());
}
Sign in to answer questions and track your progress
Sign In