Fix ifdef

This commit is contained in:
Simon Brand
2017-11-03 14:29:35 +00:00
parent 4d5f9bd785
commit 39030e6a00

View File

@@ -317,7 +317,8 @@ TEST_CASE("Monadic operations", "[monadic]") {
void non_const() {}
};
#if defined(TL_EXPECTED_CXX14) && !defined(TL_EXPECTED_GCC49) && !defined(TL_EXPECTED_GCC54)
#if defined(TL_OPTIONAL_CXX14) && !defined(TL_OPTIONAL_GCC49) && \
!defined(TL_OPTIONAL_GCC54)
SECTION("Issue #1") {
tl::optional<foo> f = foo{};
auto l = [](auto &&x) { x.non_const(); };