![]() |
|
|||
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 std::string const* p_const = &s; 0008 0009 // will produce a warning only by ConstCastAwayChecker 0010 std::string& r = (std::string&)(r_const); 0011 std::string* p = (std::string*)(p_const); 0012 0013 // must not produce a warning 0014 std::string const& r_const_again = (std::string const&)(r_const); 0015 0016 return 0; 0017 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.2.1 LXR engine. The LXR team |
![]() ![]() |