H
Hicham Mouline
Hello,
struct S {
bool b1;
bool b2;
bool b3;
};
Is there a difference between
S f()
{
const S s = {true, false, false};
return s;
}
and
S f()
{
S s;
s.b1 = true;
s.b2 = false;
s.b3 = false;
return s;
}
currently,
S f()
{
return {true, false, false};
}
is not allowed. is this gonna change in c++0/1x ?
regards,
struct S {
bool b1;
bool b2;
bool b3;
};
Is there a difference between
S f()
{
const S s = {true, false, false};
return s;
}
and
S f()
{
S s;
s.b1 = true;
s.b2 = false;
s.b3 = false;
return s;
}
currently,
S f()
{
return {true, false, false};
}
is not allowed. is this gonna change in c++0/1x ?
regards,