Andrzej Krzemienski
e47a017009
added o.map()
2018-06-23 18:27:14 +02:00
Andrzej Krzemienski
5182f7f30f
Added has_value()
2018-03-24 00:04:15 +01:00
Andrzej Krzemienski
06dea2cb9b
Reverted specialization for trivial types
...
It caused too many problems. I left only specialiation for scalar types.
I will need to devise clever type traits for reconizing trivial types with working constructor.
2017-11-07 23:34:34 +01:00
Andrzej Krzemienski
58f7c2f14a
fix bug with defaulted move in msvc 12.0
2017-11-07 23:34:12 +01:00
Andrzej Krzemienski
2d2c3c3f6f
trivially-copyable optional<T> for trivial T
2017-11-07 23:34:05 +01:00
Andrzej Krzemienski
4fe57f57fa
Fix make_optional for rvalues
2017-11-07 23:33:54 +01:00
Andrzej Krzemienski
cb7641dc34
fixed wrong namespace in docs
2017-02-14 23:53:30 +01:00
Andrzej Krzemienski
62acbe1690
docs: updated gotchas section
2016-09-17 01:25:12 +02:00
Andrzej Krzemienski
1fd315016a
fixed release notes
2016-03-05 23:43:59 +01:00
Andrzej Krzemienski
44d57a1d8b
Fix: prevented the binding illegal temporary to optional<const int&>
...
Older MSVC versions add illegal temporary when you want to assign from const integral value.
2016-02-19 00:25:54 +01:00
Andrzej Krzemienski
94c735af2d
added optional ref swap
...
and also chaned the copyright year in docs
2016-02-13 15:33:07 +01:00
Andrzej Krzemienski
9d3f2fa825
Doc: spelling fix from jsjohns
2015-03-13 22:53:47 +01:00
Andrzej Krzemienski
726b227aa9
operator<< improvements
2015-01-21 00:10:51 +01:00
Andrzej Krzemienski
b5ae4bf78d
Added performance notes to documentation
2014-12-06 19:27:53 +01:00
Andrzej Krzemienski
53e53171c4
none_t is no loner constructible from literal 0
...
This caused problems because:
optional<T> o = 0;
always worked. But often it would create an uninitialized optional.
2014-11-22 01:18:25 +01:00
Andrzej Krzemienski
a913650322
Doc typeo fixes + 1 test fix
2014-09-12 11:57:44 +02:00
Andrzej Krzemienski
9edf2ddac1
docs: fixed requirements in value_or()
2014-06-16 14:23:34 +02:00
Andrzej Krzemienski
31c9119266
value_or() requires that U is convertible to T
...
Due to Vladimir Batov.
2014-06-14 22:49:37 +02:00
Andrzej Krzemienski
07bdbc3743
docs: optional<T> == nont_t requirements
2014-06-08 20:51:55 +02:00
Andrzej Krzemienski
befd3970d7
docs -- expanded tutprial section
2014-06-08 16:23:35 +02:00
Andrzej Krzemienski
fdc98d17ca
Added limited emplace() for older compilers
2014-06-06 23:24:43 +02:00
Andrzej Krzemienski
dec71d338d
Cleaned up docs
2014-06-06 00:53:15 +02:00
Andrzej Krzemienski
3dd614fd91
Reorganized docs. Minor code fix wrt opt refs
2014-06-04 18:13:06 +02:00