Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-12-19 04:04:57

0001 
0002 #include <string>
0003 
0004 int main() {
0005   std::string s = "23";
0006   std::string const& r_const = s;
0007 
0008   // will produce a warning by ConstCastChecker
0009   // and ConstCastAwayChecker
0010   std::string& r = const_cast<std::string&>(r_const);
0011 
0012   return 0;
0013 }