|
||||
File indexing completed on 2024-04-06 12:31:51
0001 0002 #include <string> 0003 0004 0005 int main() 0006 { 0007 std::string s = "23"; 0008 std::string const& r_const = s; 0009 std::string const* p_const = &s; 0010 0011 // will produce a warning only by ConstCastAwayChecker 0012 std::string & r = (std::string &) ( r_const ); 0013 std::string * p = (std::string *) ( p_const ); 0014 0015 // must not produce a warning 0016 std::string const& r_const_again = ( std::string const&) ( r_const ); 0017 0018 return 0; 0019 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.2.1 LXR engine. The LXR team |