P
Size: a a a
S
If some user-declared constructors are present, the user may still force the automatic generation of a default constructor by the compiler that would be implicitly-declared otherwise with the keyword default.
S
struct test {
test(test &) = delete;
};
struct wrapper {
test t;
wrapper(wrapper const&) = default; //clang : ошибка компиляции; gcc, msvc : прожевали
};
SE
error: the parameter for this explicitly-defaulted copy constructor is const, but a member or base requires it to be non-const
SE
АК
М
IZ
АК
TW
if (str.find("substr") != std::string::end) { /* found */ }
. Поиск не учитывает регистр, в отличие от похожего метода в Qt.42uz
, схожий со спецификатором формата функции printf().enum class
);АЛ
AZ
IZ
AZ