Workarounds for no ‘rvalue references to *this’ feature
Good question. I attempted writing a similar sort of proxy class recently but never achieved a good solution. The best I found was calling a member function on every use where the proxy was required to be an r-value: ORef<T> move() { return ORef<T>( this->release() ); } This changes the semantics of declaring something an … Read more