diff --git a/doc/91_relnotes.qbk b/doc/91_relnotes.qbk index a29137c..f19da24 100644 --- a/doc/91_relnotes.qbk +++ b/doc/91_relnotes.qbk @@ -11,6 +11,10 @@ [section:relnotes Release Notes] +[heading Boost Release 1.73] + +* Fixed [@https://github.com/boostorg/optional/issues/78 issue #78]. + [heading Boost Release 1.69] * Remove deprecation mark from `reset()` method (without arguments). diff --git a/doc/html/boost_optional/relnotes.html b/doc/html/boost_optional/relnotes.html index 3d84696..600639e 100644 --- a/doc/html/boost_optional/relnotes.html +++ b/doc/html/boost_optional/relnotes.html @@ -28,6 +28,15 @@

+ Boost + Release 1.73 +

+
+

+ Boost Release 1.69

@@ -45,7 +54,7 @@

- + Boost Release 1.68

@@ -62,7 +71,7 @@

- + Boost Release 1.67

@@ -76,7 +85,7 @@

- + Boost Release 1.66

@@ -94,7 +103,7 @@

- + Boost Release 1.63

@@ -118,7 +127,7 @@

- + Boost Release 1.62

@@ -126,7 +135,7 @@ Fixed Trac #12179.

- + Boost Release 1.61

@@ -169,7 +178,7 @@

- + Boost Release 1.60

@@ -180,7 +189,7 @@ #11203.

- + Boost Release 1.59

@@ -194,7 +203,7 @@

- + Boost Release 1.58

@@ -230,7 +239,7 @@

- + Boost Release 1.57

@@ -240,7 +249,7 @@ to fix C++03 compile error on logic_error("...")".

- + Boost Release 1.56

diff --git a/doc/html/index.html b/doc/html/index.html index 39d99e7..9094ce0 100644 --- a/doc/html/index.html +++ b/doc/html/index.html @@ -145,7 +145,7 @@ - +

Last revised: November 08, 2018 at 17:44:53 GMT

Last revised: December 19, 2019 at 23:07:07 GMT


diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 7936ad7..a881d52 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -50,6 +50,7 @@ import testing ; [ run optional_test_member_T.cpp ] [ run optional_test_tc_base.cpp ] [ compile optional_test_sfinae_friendly_ctor.cpp ] + [ compile optional_test_path_assignment.cpp ] [ compile-fail optional_test_fail_const_swap.cpp ] [ compile-fail optional_test_ref_convert_assign_const_int_prevented.cpp ] [ compile-fail optional_test_fail1.cpp ] diff --git a/test/optional_test_path_assignment.cpp b/test/optional_test_path_assignment.cpp new file mode 100644 index 0000000..6da6718 --- /dev/null +++ b/test/optional_test_path_assignment.cpp @@ -0,0 +1,62 @@ +// Copyright (C) 2019 Andrzej Krzemienski. +// +// Use, modification, and distribution is subject to the Boost Software +// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) +// +// See http://www.boost.org/lib/optional for documentation. +// +// You are welcome to contact the author at: +// akrzemi1@gmail.com + +#include "boost/optional/optional.hpp" + +#ifdef __BORLANDC__ +#pragma hdrstop +#endif + +template +struct void_t +{ + typedef void type; +}; + + +template +struct trait +{ +}; + +// the following trait emulates properties std::iterator_traits +template +struct trait >::type + >::type> +{ + typedef BOOST_DEDUCED_TYPENAME T::value_type value_type; +}; + +// This class emulates the properties of std::filesystem::path +struct Path +{ + template ::value_type> + Path(T const&); +}; + + +int main() +{ +#ifndef BOOST_OPTIONAL_DETAIL_NO_IS_CONSTRUCTIBLE_TRAIT +#ifndef BOOST_OPTIONAL_DETAIL_NO_SFINAE_FRIENDLY_CONSTRUCTORS + + boost::optional optFs1; + boost::optional optFs2; + + optFs1 = optFs2; + + // the following still fails although it shouldn't + //BOOST_STATIC_ASSERT((std::is_copy_constructible>::value)); + +#endif +#endif +}