6 Jun
2018
6 Jun
'18
3:58 a.m.
On 6/5/2018 8:50 PM, degski via Boost-users wrote:
On 5 June 2018 at 18:51, Xavier Besseron via Boost-users
mailto:boost-users@lists.boost.org> wrote: I hope this will help.
Maybe you should/could create a PR, then in the future (if and when it get's merged, you don't have to fiddle with the boost code either).
Code similar to what Xavier posted is in Boost 1.65+, but if you want to support earlier versions of Boost (or use std::optional instead of boost::optional), you have to do something like that. It would probably be worth adding an overload that works with std::optional, but I don't know if I'll have time in the near future to shepherd a patch into Boost. - Jim