Dec 2, 2014

[C++][boost] optional got ya.

Reference:
A gotcha with Optional

Long story short:
boost::optional has overloaded operator<
and
boost::none is considered as a unique value less than any other value of T

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.