We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Перенос предложения: голоса +12, -2 Автор идеи: Топунов Владимир Андреевич
Подобно explicit конструктору запрещает неявное преобразование типа при присваивании
std::string s; s = 49; // Неявное преобразование int в char std::cout << s << std::endl; // Вывод символа '1'
class String { public: explicit operator = (char ch); ... }; ... String s; s = 49; // Ошибка компиляции s = '1'; // OK
The text was updated successfully, but these errors were encountered:
ldvsoft 9 марта, 11:14 Не придём ли мы к explicit параметрам функций?
Sorry, something went wrong.
No branches or pull requests
Перенос предложения: голоса +12, -2
Автор идеи: Топунов Владимир Андреевич
Подобно explicit конструктору запрещает неявное преобразование типа при присваивании
The text was updated successfully, but these errors were encountered: