C++11????????????????
???????????? ???????[ 2015/8/28 11:42:03 ] ??????????????????? .NET
????------------------------------?????????1????????2????-----------------------------------------
????extern B f();
????const A& rca2 = f();// f()?????????????????rvalue??
????// the cv1 >= cv2: const > ??????η???2.1???????
????struct X {
????operator B();
????operator int&();
????} x;
????const A& r = x;// x ?????????
????// r ??x ????reference-compatible??
????// x ???operator B()??????????????prvalue?? tmpB
????// r ??tmpB ????????2.1????????2.2???????
????-----------------------?????????1????????????2????????3????---------------------------
????const double& rcd2 = 2; // 2?????????lvalue/xvalue/???????prvalue/?????????????????
????// ??????????????2.0??3???????
????--------?????????1????????????2????????????3????????4????----------------------
????double d2 = 1.0;
????double&& rrd2 = d2; // rrd2?????rvalue reference?????????lvalue ?????4???????
????-----------------------------------------?????Щ????-------------------------------------------------------------
????const volatile int cvi = 1;
????const int& r2 = cvi; // error?? in this example?? the cv1 <= cv2?? which violate the 1.1
????*************************????????????*************************
????class Dog
????{
????public:
????Dog(){}
????virtual ~Dog(){}
????};
????void NonConstReference (Dog & dog )
????{
????//tell the dog to do something here
????}
????void TestNonConstReference ()
????{
????NonConstReference( Dog());
????}
????NonConstReference( Dog())?????????????????????????prvalue??
????????ISO??????????????1?????????????2?????????
????????2???NonConstReference(Dog & dog )?е?Dog & dog ??????const Dog & dog??
??????????????????????????
????************************??????????????????????????*****************************
??????????????????????c++??????????????????飺
????????????lvalue reference?? ?????????????rvalue.
??????????????ó?const lvalue reference.
???????????????????const???????c++??????????????????????????????????????????????????
????????????????????????????const???ò?????????????????л????????????????????????????????????????ú?????????
???????c++????????????????????????????const??????????????????????????????????÷?????????
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
??C++????????????C++ lvalue??rvalueC++11????????C++???????????????C++?е?????????????????C++?????????C++???Windows????λ??C/C++???????????????????JAVA??C??C++??????????c++??python???????????????????????????????C++???????C++?е????????C++????????????????C++ ???????????????C++?????????????????????C++????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????