diff --git a/doc/91_relnotes.qbk b/doc/91_relnotes.qbk index fcc37f8..a29137c 100644 --- a/doc/91_relnotes.qbk +++ b/doc/91_relnotes.qbk @@ -15,6 +15,7 @@ * Remove deprecation mark from `reset()` method (without arguments). * Fixed [@https://github.com/boostorg/optional/issues/59 issue #59]. +* Fixed bug with initialization of certain wrapper types in clang with -std=c++03. See [@https://github.com/boostorg/optional/pull/64 pr #64]. [heading Boost Release 1.68] diff --git a/doc/html/boost_optional/relnotes.html b/doc/html/boost_optional/relnotes.html index dcf21f9..3d84696 100644 --- a/doc/html/boost_optional/relnotes.html +++ b/doc/html/boost_optional/relnotes.html @@ -39,6 +39,10 @@ Fixed issue #59. +
  • + Fixed bug with initialization of certain wrapper types in clang with -std=c++03. + See pr #64. +
  • diff --git a/doc/html/index.html b/doc/html/index.html index 4fe8adc..39d99e7 100644 --- a/doc/html/index.html +++ b/doc/html/index.html @@ -145,7 +145,7 @@ - +

    Last revised: October 29, 2018 at 21:06:01 GMT

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


    diff --git a/test/optional_test_tc_base.cpp b/test/optional_test_tc_base.cpp index 8107f7b..a1d293b 100644 --- a/test/optional_test_tc_base.cpp +++ b/test/optional_test_tc_base.cpp @@ -58,10 +58,20 @@ struct W void test_value_init() { +#ifndef BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX { S s; W w{s}; } +#endif + { + S s; + W w(s); + } +} + +void test_optoinal_reference_wrapper() +{ boost::optional > o; BOOST_TEST(boost::none == o); } @@ -70,6 +80,7 @@ int main() { test_tc_base(); test_value_init(); + test_optoinal_reference_wrapper(); return boost::report_errors(); }