3 ms·
void f(const Foo&_x){ Foo& x=const_cast<Foo&> (_x); … } What do you think is going on here?
by geocar 12y ago
void f(const Foo&_x){
Foo& x=const_cast<Foo&> (_x);
…
}
What do you think is going on here?
- Tobani 12y ago> What do you think is going on here? I think you're adding code that doesn't address my point. This is pointer manipulation, not function call semantics. If you have raw pointers you can do a lot of magic. I think your code actually demonstrates how not-pointer like Java's references actually are.