#310 Given the following in C++
struct A {
const int :1; // Well-formed?
};
Without checking:
A. Yes
B. No
A
B
Poll ended at .
#310 Given the following in C++
struct A {
const int :1; // Well-formed?
};
Without checking:
A. Yes
B. No
Answer is B
No this is not well-formed
This is CWG2229: http://wg21.link/cwg2229
[class.bit]p2: https://eel.is/c++draft/class.bit#2
Says "An unnamed bit-field shall not be declared with a cv-qualified type."