4fbb7582e1
Don't instantiate is_convertible_to_T_or_factory when is_optional_related
...
Fixes #78 .
2019-12-18 17:51:51 -08:00
29dfc173c6
Merge pull request #71 from Mike-Devel/min_cmake
...
[CMake] Add minimal cmake support
2019-03-04 10:43:45 +01:00
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
324272fc0e
Merge pull request #70 from Kojoley/patch-1
...
Fix unused argument warning
2019-02-27 21:22:08 -10:00
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
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
545fd9a72f
docs and tests fixes
2018-11-08 18:46:03 +01:00
29b2dae630
Merge branch 'Lastique-fix_constructible_from_any' into develop
2018-11-05 18:18:05 +01:00
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
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
eea107d9b5
Merge branch 'develop'
optional-2018-10-29
2018-10-29 22:24:28 +01:00
69e239530e
docs: updated releasenotes
2018-10-29 22:06:47 +01:00
65bb040db8
tests: added two test cases from GitHub issues
2018-10-29 21:47:09 +01:00
fae2791f45
added test for swapping const opitonals
2018-10-25 00:37:13 +02:00
0f8e356bca
rebuilt docs
2018-10-23 22:46:26 +02:00
59277bc31f
Merge branch 'Kojoley-remove-deprecation-mark-from-reset' into develop
2018-10-23 22:35:55 +02:00
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
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
350ebab88a
Workaround GCC 8-9 regression
...
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87531
2018-10-05 18:47:16 +03:00
a3916b46a9
Merge pull request #58 from boostorg/pr/remove-mpl
...
Remove dependency on MPL
2018-09-12 22:39:53 +02:00
c52280bb78
Remove dependency on MPL
2018-09-12 20:02:47 +03:00
155ad5911e
Merge branch 'develop'
optional-2018-07-16
boost-1.68.0
2018-07-16 20:41:11 +02:00
228b20df82
fixed old implementation (issue #57 )
2018-07-12 00:30:47 +02:00
2854383cf7
Merge branch 'develop'
optional-2018-07-03
2018-07-03 23:06:28 +02:00
d0b87d2f35
documented flat_map
2018-07-02 23:23:46 +02:00
71d797b9ee
added implementation and tests of flat_map()
2018-06-28 23:30:47 +02:00
701afd43a4
fixed strange verisons of libstdc++
2018-06-28 21:17:07 +02:00
d13623884a
hopefully fixed the libstdc++ 4.9 problem (thanks Jonathan)
2018-06-28 02:10:57 +02:00
7320dd54e8
one more test hack macro to check
2018-06-27 22:23:57 +02:00
51a46f95c6
testing clang v.
2018-06-26 00:04:33 +02:00
35ca7c1ff1
added a hack test to check compiler setup
2018-06-25 23:59:19 +02:00
0169460194
fixed tests and maybe std::is_trivially_default_constructible
2018-06-25 22:50:00 +02:00
42445e94aa
Fix for C++03 tests for .map() using result_of
2018-06-24 17:12:38 +02:00
250806d029
fixed >> int C++03 templates
2018-06-24 15:22:56 +02:00
51d1bc843d
test and doc update for .map()
2018-06-23 20:53:16 +02:00
e47a017009
added o.map()
2018-06-23 18:27:14 +02:00
5182f7f30f
Added has_value()
2018-03-24 00:04:15 +01:00
8f992acb94
Merge branch 'develop'
boost-1.67.0
2018-03-01 01:53:37 +01:00
33c7a6aa2b
docs: relnotes for 1.67
2018-03-01 01:10:42 +01:00
76ff82d191
Silenced warning -Wzero-as-null-pointer-constant
2018-02-15 22:51:08 +01:00
b1e29eb585
Merge pull request #50 from pkl97/develop
...
Fixed recurring typo
2018-02-12 08:44:23 +01:00
a5aaf4d8d0
Fixed recurring typo
2018-02-11 21:03:54 +01:00
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
e230bd83c6
Fix compilation of template parameter with member enum T on VS2015
...
Issue: https://github.com/boostorg/optional/issues/46
2018-01-03 10:46:31 +01:00
b832d4c54f
Add test for template parameter with member enum T (fails by default on VS2015)
...
Issue: https://github.com/boostorg/optional/issues/46ű
2018-01-03 10:37:37 +01:00
fb54ee1741
Fixed spelling mistake in macros
boost-1.66.0
2017-11-07 23:35:01 +01:00
5b6f4be434
Fix make_optional for rvalues
2017-11-07 23:34:56 +01:00
f9fdf42a17
fix for the previous partial commit
2017-11-07 23:34:52 +01:00
7541076cf1
fixed defaulted moves on older compilers
2017-11-07 23:34:41 +01:00
40f7c97292
Fixed -Wmaybe-uninitialized
2017-11-07 23:34:37 +01:00