Commit Graph

16 Commits

Author SHA1 Message Date
Josh Soref
db472e7ed6 spelling: recognized
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-07-11 00:39:13 +02:00
Josh Soref
4b63acfc10 spelling: optional
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-07-11 00:39:13 +02:00
Josh Soref
581c43f25c spelling: member
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-07-11 00:39:13 +02:00
Andrzej Krzemienski
5a444eb84b docs: updated copyright notice 2021-03-10 23:07:18 +01:00
gieseanw
ead529af54 Address unreachable code warning
In MSVC optional<T&>::value() emits a warning C4702: unreachable code because throw_exception is marked BOOST_RETURN.
Otherwise the ternary code might have been preferable.
This change addresses the warning while preserving the functionality. It replicates optional<T>::value() for consistency.
2020-12-19 00:00:18 +01:00
Andrzej Krzemienski
7e0b8145b5 boost::none is constexpr-declared 2020-10-24 17:17:10 +02:00
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
0988b4c394 docs: updated gotchas section 2016-09-17 01:49:30 +02: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
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