Commit Graph
505 Commits
Author SHA1 Message Date
Robert Leahy d07ae78901 Tests Pass in GCC 4.4.7
Several tests either did not compile or failed upon running when using
GCC 4.4.7.
2019-12-23 11:24:39 -05:00
Robert Leahy 683dbe2412 .travis.yml: Specify Trusty for Trusty Addons
Previously .travis.yml didn't specify dist: trusty when using addons
which were specifically for Trusty. This led to the Clang 5 build
failing when trying to install Clang 5.
2019-12-23 11:24:39 -05:00
Andrzej Krzemienski 010ee00604 Update release notes 2019-12-20 00:30:37 +01:00
Andrzej Krzemienski 13bc27698e Add test case for fix to issue #78 2019-12-20 00:18:52 +01: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
Andrzej Krzemienski 4c863f5bf8 Merge branch 'master' into develop 2019-12-19 20:52:53 +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
Casey Carter 4fbb7582e1 Don't instantiate is_convertible_to_T_or_factory when is_optional_related
Fixes #78.
2019-12-18 17:51:51 -08:00
Andrzej Krzemieński 29dfc173c6 Merge pull request #71 from Mike-Devel/min_cmake
[CMake] Add minimal cmake support
2019-03-04 10:43:45 +01:00
Mike Dev f4d1107e86 [CMake] Add minimal cmake support
- CMake file only supports add_subdirectory workflow.
- Provides Boost::optional target,
  but no installation and no unit tests
2019-03-02 17:12:29 +01:00
Andrzej Krzemieński 324272fc0e Merge pull request #70 from Kojoley/patch-1
Fix unused argument warning
2019-02-27 21:22:08 -10:00
Nikita Kniazev ee575b34c5 Fix unused argument warning
boost/optional/optional.hpp:970:5: warning: unused parameter 'rhs' [-Wunused-parameter]
2019-02-28 00:13:00 +03:00
Andrzej Krzemienski a192204b41 Merge branch 'develop' optional-2018-11-08 boost-1.71.0 boost-1.70.0 boost-1.69.0 boost-1.73.0.beta1 boost-1.69.0-beta1 boost-1.72.0.beta1 boost-1.72.0 boost-1.71.0.beta1 boost-1.70.0.beta1 2018-11-08 18:49:34 +01:00
Andrzej Krzemienski 545fd9a72f docs and tests fixes 2018-11-08 18:46:03 +01:00
Andrzej Krzemienski 29b2dae630 Merge branch 'Lastique-fix_constructible_from_any' into develop 2018-11-05 18:18:05 +01:00
Andrey Semashev 2f3cf1ca84 Added a test to verify that boost::optional copy constructor does not invoke T's template constructors. 2018-11-04 17:54:57 +03:00
Andrey Semashev 24d29e5865 Fix for clang, when adapted type is convertible from other types.
The problem was with copy/move constructors of boost::optional<T>, which invoked
optional_base<T> constructors with a single argument. Since optional_base has
copy/move constructors along with initializing constructors taking a single
argument, the latter may be considered by the compiler for viability. While
doing so, the compiler may instantiate the template constructor of T with
an argument of optional_base<T>, which in turn may fail if the constructor
attempts to inspect the type of its argument (e.g. to constrain the set of
acceptable types). Specifically, this happens with clang in C++03 mode,
when boost::multiprecision::number is wrapped in boost::optional and
a copy constructor of boost::optional is invoked.

This commit fixes the problem by destinguishing copy/move constructors of
optional_base from initializing constructors with an additional tag argument.
2018-11-04 17:35:10 +03:00
Andrzej Krzemienski eea107d9b5 Merge branch 'develop' optional-2018-10-29 2018-10-29 22:24:28 +01:00
Andrzej Krzemienski 69e239530e docs: updated releasenotes 2018-10-29 22:06:47 +01:00
Andrzej Krzemienski 65bb040db8 tests: added two test cases from GitHub issues 2018-10-29 21:47:09 +01:00
Andrzej Krzemienski fae2791f45 added test for swapping const opitonals 2018-10-25 00:37:13 +02:00
Andrzej Krzemienski 0f8e356bca rebuilt docs 2018-10-23 22:46:26 +02:00
Andrzej Krzemienski 59277bc31f Merge branch 'Kojoley-remove-deprecation-mark-from-reset' into develop 2018-10-23 22:35:55 +02:00
Nikita Kniazev bebc606a4c Remove deprecation mark from reset()
The `std::optional` has `reset()` [optional.mod] and it is not deprecated.
2018-10-23 22:34:10 +02:00
Andrzej Krzemieński 106f9aee5e Merge pull request #60 from Kojoley/workaround-gcc-8-9-regression
Workaround GCC 8-9 regression
2018-10-15 16:36:17 +02:00
Nikita Kniazev 350ebab88a Workaround GCC 8-9 regression
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87531
2018-10-05 18:47:16 +03:00
Andrzej Krzemieński a3916b46a9 Merge pull request #58 from boostorg/pr/remove-mpl
Remove dependency on MPL
2018-09-12 22:39:53 +02:00
Peter Dimov c52280bb78 Remove dependency on MPL 2018-09-12 20:02:47 +03:00
Andrzej Krzemienski 155ad5911e Merge branch 'develop' optional-2018-07-16 boost-1.68.0 2018-07-16 20:41:11 +02:00
Andrzej Krzemienski 228b20df82 fixed old implementation (issue #57) 2018-07-12 00:30:47 +02:00
Andrzej Krzemienski 2854383cf7 Merge branch 'develop' optional-2018-07-03 2018-07-03 23:06:28 +02:00
Andrzej Krzemienski d0b87d2f35 documented flat_map 2018-07-02 23:23:46 +02:00
Andrzej Krzemienski 71d797b9ee added implementation and tests of flat_map() 2018-06-28 23:30:47 +02:00
Andrzej Krzemienski 701afd43a4 fixed strange verisons of libstdc++ 2018-06-28 21:17:07 +02:00
Andrzej Krzemienski d13623884a hopefully fixed the libstdc++ 4.9 problem (thanks Jonathan) 2018-06-28 02:10:57 +02:00
Andrzej Krzemienski 7320dd54e8 one more test hack macro to check 2018-06-27 22:23:57 +02:00
Andrzej Krzemienski 51a46f95c6 testing clang v. 2018-06-26 00:04:33 +02:00
Andrzej Krzemienski 35ca7c1ff1 added a hack test to check compiler setup 2018-06-25 23:59:19 +02:00
Andrzej Krzemienski 0169460194 fixed tests and maybe std::is_trivially_default_constructible 2018-06-25 22:50:00 +02:00
Andrzej Krzemienski 42445e94aa Fix for C++03 tests for .map() using result_of 2018-06-24 17:12:38 +02:00
Andrzej Krzemienski 250806d029 fixed >> int C++03 templates 2018-06-24 15:22:56 +02:00
Andrzej Krzemienski 51d1bc843d test and doc update for .map() 2018-06-23 20:53:16 +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
akrzemi1 8f992acb94 Merge branch 'develop' boost-1.67.0 2018-03-01 01:53:37 +01:00
akrzemi1 33c7a6aa2b docs: relnotes for 1.67 2018-03-01 01:10:42 +01:00
akrzemi1 76ff82d191 Silenced warning -Wzero-as-null-pointer-constant 2018-02-15 22:51:08 +01:00
Andrzej Krzemieński b1e29eb585 Merge pull request #50 from pkl97/develop
Fixed recurring typo
2018-02-12 08:44:23 +01:00
Peter Klotz a5aaf4d8d0 Fixed recurring typo 2018-02-11 21:03:54 +01:00
Andrzej Krzemieński 1f6d8bc602 Merge pull request #47 from petamas/bugfix/member_T
Fix #46: optional<X> fails to compile with VS2015 if X has an embedded enum named T
2018-01-03 14:08:31 +01:00