Community
Participate
Working Groups
The following struct is an aggregate from c++11 to c++17, though, if I understand correctly, it isn't in c++20. By accident cdt thinks it is not an aggregate for the correct reason for c++20 (user-declared ctor). What to do? As far as I understand there is no mechanism to distinguish c++ versions? struct type { int value; type() = default; }; int main(){ type{2}; // cdt doesn't find a ctor }
The policy so far has been that CDT implements the latest version of the language (to the extent that the changes have been implemented in CDT). If someone has the motivation to contribute support for different language versions at the same time, controlled via some option, I would accept patches for that.