30 May
2017
30 May
'17
9:48 p.m.
Le 30/05/2017 à 23:28, Andrzej Krzemienski via Boost a écrit :
2017-05-30 18:11 GMT+02:00 Peter Dimov via Boost
: Let's first see if people who favor a narrow interface are satisfied with value_if, which for me is a very good compromise. Once you have a raw pointer, things are as narrow as it gets.
Sorry Peter I don't receive your mails.
value_if has a wide contract. I don't have nothing agains it. value_if It can be constructed from has_value and operator* (call it deref if you prefer). So the minimal interface is not value_if. When I kno wthat I have a value in I don't want to use value_if and dereference the obtained pointer. Vicente