[Solved] Does C++ standardize the behavior of std::optional under std::min and std::max?
Is something like what I expected standardized in C++17 No. , or proposed for standardization later? There is no such proposal in any of the mailings. Though of course there’s plenty of easy workarounds, so there’s little reason for such a proposal: oy ? std::max(x,*oy) : x; x < oy ? *oy : x *std::max(oint(x), … Read more