/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Utilities/StaticAnalyzers/test/const_cast.cpp
12 строк
239 B
Ivan Razumov
Replace MutableMemberChecker with version that checks access to mutable member via const pointer
04 дек 2024, 17:44
04 дек 2024, 17:44
d01e337
Код
Авторство
О чём код?
#include <string> int main() { std::string s = "23"; std::string const& r_const = s; // will produce a warning by ConstCastChecker // and ConstCastAwayChecker std::string& r = const_cast<std::string&>(r_const); return 0; }