From d4a4a5b6ad6c69c28666731beddc7d8aa480b334 Mon Sep 17 00:00:00 2001 From: Andrzej Krzemienski Date: Thu, 16 Jan 2020 22:31:23 +0100 Subject: [PATCH] fixed C++98-incompatible unit test --- test/optional_test_path_assignment.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/test/optional_test_path_assignment.cpp b/test/optional_test_path_assignment.cpp index 6da6718..f0c214a 100644 --- a/test/optional_test_path_assignment.cpp +++ b/test/optional_test_path_assignment.cpp @@ -20,7 +20,7 @@ struct void_t { typedef void type; }; - + template struct trait @@ -29,7 +29,7 @@ struct trait // the following trait emulates properties std::iterator_traits template -struct trait >::type >::type> { @@ -39,13 +39,20 @@ struct trait= 201103 template ::value_type> Path(T const&); +#else + template + Path(T const&, BOOST_DEDUCED_TYPENAME trait::value_type* = 0); +#endif + }; int main() -{ +{ #ifndef BOOST_OPTIONAL_DETAIL_NO_IS_CONSTRUCTIBLE_TRAIT #ifndef BOOST_OPTIONAL_DETAIL_NO_SFINAE_FRIENDLY_CONSTRUCTORS