fixed tests and maybe std::is_trivially_default_constructible

This commit is contained in:
Andrzej Krzemienski
2018-06-25 22:50:00 +02:00
parent 42445e94aa
commit 0169460194
3 changed files with 11 additions and 4 deletions

View File

@ -140,7 +140,7 @@ void test_map_optional()
void test_map_with_lambda()
{
#ifndef BOOST_NO_CXX11_LAMBDAS
#if !defined BOOST_NO_CXX11_LAMBDAS && !defined BOOST_NO_CXX11_DECLTYPE_N3276
optional<int> oi (1), oj(2);
verify_type<optional<bool> >(oi.map([](int i){ return i == 1; }));
optional<bool> ob = oi.map([](int i){ return i == 1; });