direct-initialization Questions
1
I have the following code:
#include <iostream>
#include <vector>
struct C {
int a;
C() : a(0) {}
C(int a) : a(a) {}
};
std::ostream &operator<<(std::ostream &os, con...
Matriculation asked 14/4, 2023 at 9:35
9
Solved
Suppose I have this function:
void my_test()
{
A a1 = A_factory_func();
A a2(A_factory_func());
double b1 = 0.5;
double b2(0.5);
A c1;
A c2 = A();
A c3(A());
}
In each grouping, are the...
Vitellin asked 26/6, 2009 at 21:36
1
© 2022 - 2024 — McMap. All rights reserved.