Commit Graph

246 Commits

Author SHA1 Message Date
Andrzej Krzemienski cbfb66379b Tags in_place_init and in_place_init_if become inline constexpr 2024-09-13 16:22:40 +02:00
Alexander Grund 36c33f2e67 Fix ununsed parameter warning
The function returns false w/o using any parameter leading to a warning. Remove the name from the parameter
2024-08-16 10:37:12 +02:00
Andrzej Krzemienski 411ead088d Different implementation of map and flat_map 2024-08-15 21:41:17 +02:00
Andrzej Krzemienski e360de3da5 Header cleanup 2024-08-15 11:48:28 +02:00
Andrzej Krzemienski 346dc03746 Reimplement trivially semiregular trait 2024-08-15 11:42:42 +02:00
Andrzej Krzemienski 27309c40ad Drop unused traits 2024-08-15 11:13:44 +02:00
Andrzej Krzemienski 6ec468aff6 Drop explicit bool idiom 2024-08-15 10:57:03 +02:00
Andrzej Krzemienski 794e03af30 Drop dependency on Boost.Predef 2024-08-15 10:43:43 +02:00
Andrzej Krzemienski 3a8556186e Drop dependency on Boost.Utility 2024-08-15 08:49:21 +02:00
Andrzej Krzemienski 82d08adf11 Drop support for C++03 2024-08-15 01:48:31 +02:00
Andrzej Krzemienski b270cf019b revert launder fix
A better fix is now in boost::launder.
2024-01-04 08:29:06 +01:00
Andrzej Krzemienski 790d4f729f cleaner workaround for VS2017 launder bug 2024-01-04 02:03:33 +01:00
Andrzej Krzemienski 8375df7693 Fix MSVC 14.1 compiler crash 2024-01-03 22:20:28 +01:00
Andrzej Krzemienski 01e80d2b87 drop dependency on boost.detail 2024-01-03 21:41:26 +01:00
Andrzej Krzemienski e31cf6f2a8 Fix some -Wmaybe-uninitialized warnings 2023-12-29 01:40:01 +01:00
Peter Dimov e59b1bce1d Fix typo in none_t.hpp. Closes #115. 2023-11-09 00:38:43 +01:00
Andrzej Krzemienski a3abf04548 added deprecation message 2023-11-09 00:38:43 +01:00
Andrey Semashev def2db7c45 Switch to boost::core::invoke_swap.
boost::swap is deprecated and will be removed. Use boost::core::invoke_swap
as a replacement.
2023-11-09 00:38:43 +01:00
Josh Soref 246f1663e1 spelling: trivially
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-07-11 00:39:13 +02:00
Josh Soref 653ebefbac spelling: support
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-07-11 00:39:13 +02:00
Josh Soref 7e395f4520 spelling: screwed
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-07-11 00:39:13 +02:00
Josh Soref cdc2bd8482 spelling: references
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-07-11 00:39:13 +02:00
Josh Soref 8ffb7e3f57 spelling: pointees
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-07-11 00:39:13 +02:00
Josh Soref deda20af89 spelling: overloads
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-07-11 00:39:13 +02:00
Josh Soref 168552e021 spelling: msvc
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-07-11 00:39:13 +02:00
Josh Soref 56156dcc87 spelling: functions
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-07-11 00:39:13 +02:00
Josh Soref 9944804c5c spelling: doesn't
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-07-11 00:39:13 +02:00
Josh Soref cc416b8989 spelling: deprecated
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-07-11 00:39:13 +02:00
Josh Soref c4291fa461 spelling: compiler
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-07-11 00:39:13 +02:00
Josh Soref 9c44e402f6 spelling: because
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-07-11 00:39:13 +02:00
Josh Soref 5ab4701192 spelling: assignment
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-07-11 00:39:13 +02:00
Andrzej Krzemienski 85ebe0a2ed fix hash spec for C++17 2022-06-19 23:57:15 +02:00
Andrzej Krzemienski 52abe4842e Add std::hash specialization 2022-05-21 01:13:10 +02:00
Fernando Cacciola c300a8c517 Merge pull request #100 from boostorg/pr/aligned-storage-fix
Change aligned_storage::dummy::data to unsigned char[]
2022-03-01 16:17:09 -03:00
Fernando Cacciola 4f713acdf8 Merge pull request #101 from boostorg/pr/unqualified-value-type
Construct the unqualified value_type with placement new
2022-03-01 16:07:44 -03:00
Andrzej Krzemienski 1e6f838a90 added missing license info in one file 2022-02-26 14:15:28 +01:00
Peter Dimov 51b7053abf Construct the unqualified value_type with placement new 2022-02-18 22:03:05 +02:00
Peter Dimov ec96129e9e Change aligned_storage::dummy::data to unsigned char[] 2022-02-18 21:55:13 +02:00
Andrzej Krzemienski 7dd512a019 Fix issue #98 2021-11-20 02:00:30 +01:00
Andrzej Krzemienski d0ab8004c0 Add support for BOOST_NO_IOSTREAM 2021-05-19 23:29:10 +02: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 2b08711ec6 Merge branch 'make_none_t_literal_type' of https://github.com/citrusmoose/optional into citrusmoose-make_none_t_literal_type 2020-10-24 17:05:51 +02:00
Edward Diener d5b7791710 Merge branch 'develop' of https://github.com/eldiener/optional into cppbuilder 2020-04-17 05:55:24 -04:00
Andrzej Krzemienski 9b1f8033eb Merge branch 'develop' of https://github.com/RobertLeahy/optional-2 into RobertLeahy-develop 2020-04-06 00:42:05 +02:00
Andrzej Krzemienski ed9edd54e4 Merge branch 'suppress-weak-vtables-warning' of https://github.com/Kojoley/optional into Kojoley-suppress-weak-vtables-warning 2020-04-05 23:30:40 +02:00
Edward Diener 78d6563bce Change __BORLANDC__ to BOOST_BORLANDC, which is defined in Boost config for the Embarcadero non-clang-based compilers. 2020-03-30 14:04:35 -04:00
Robert Leahy 9581804efa GCC 4.4.7: boost::in_place & Assignment
Assigning a boost::in_place_factory to a boost::optional templated on a
type which was trivially copyable failed to compile under GCC 4.4.7.
2019-12-23 11:24:39 -05:00
Andrzej Krzemienski 0481b05d1f Merge branch 'cxx20_fix' of https://github.com/CaseyCarter/optional into CaseyCarter-cxx20_fix 2019-12-19 20:56:34 +01:00
Andrey Semashev 9ed20cb085 Marked none instances as inline variables.
This should avoid duplicating none instances in all translation units.

Closes https://github.com/boostorg/optional/issues/33.
2019-12-19 20:22:16 +01:00