| ||||
| Comment on GotW #90 Solution: Factories by esgames.org (@esgamesorg)
@germinolegrand Does this mean if (option) { is an explicit conversion? Read More »Comment on GotW #91: Smart Pointer Parameters by GotW #91 | Crazy Eddie's Crazy C++
[…] my answer to GotW 91 […] Read More »Comment on GotW #90 Solution: Factories by Herb Sutter
@Johannes: Aha, you’re right. Yes, optional has implicit constructors from const T& and T&&, but the first performs a copy (it has to), so Example 4(c) should return move(ret); to get the second one. Fixed, thanks. Good eyes! @esgames.org: Yes, if(option) can and does use explicit operator bool. That’s considered an “explicit” request for a boolean test. Read More » | ||||
| ||||
Saturday, June 1, 2013
FeedaMail: Comments for Sutterâs Mill
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment