mirror of
https://github.com/boostorg/optional.git
synced 2025-07-14 21:06:37 +02:00
fixed tests and maybe std::is_trivially_default_constructible
This commit is contained in:
@ -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; });
|
||||
|
Reference in New Issue
Block a user