cost 80 ms
Return of a func

Consider this code: There is a friend function in line 14. this function declares an object inside its body. and at the the end returns that object ...

Getter returns a rvalue?

I know it's a bad attempt but why we cannot edit the private member via the getter? I think GetA1() doesn't work because it's using a rvalue, the c ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM