2014-12-21 - rvalue to this - gotha explained

few days ago i've pointed out that overloading on rvalue reference to this looks non-obvious at first. Scott explained that it is to preserve backward compatibility, as legacy code did call methods on both lvalues and rvalues, so & (aka: lvalue) overload cannot be the default. instead, you have default behavior of “match all” or you can explicitly choose “rvalue/lvalue split”. of course you cannot have both. obvious, once you learn that. :)

blog/2014/12/21/rvalue_to_this_-_gotha_explained.txt · Last modified: 2014/12/21 20:16 by basz
Back to top
Valid CSS Driven by DokuWiki Recent changes RSS feed Valid XHTML 1.0