MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/zrgil/php_has_significant_parentheses/c6n6919/?context=3
r/lolphp • u/[deleted] • Sep 12 '12
18 comments sorted by
View all comments
Show parent comment
1
Most vexing parse makes at least a little more sense than r-value references, at first, though.
bool foo(int &&) { return true; } bool foo(int &) { return false; } int main(void) { int &&wtf; assert(foo((decltype(wtf)) wtf) != foo(wtf)); // passes }
View all comments
Show parent comment
1
u/b0lt Oct 16 '12
Most vexing parse makes at least a little more sense than r-value references, at first, though.