From 427aeebda15fa8788adb358a00a1f20379093239 Mon Sep 17 00:00:00 2001 From: Simon Brand Date: Wed, 11 Oct 2017 19:09:06 +0100 Subject: [PATCH] Compiler support --- README.md | 10 ++++++++++ tests/constexpr.cpp | 2 -- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 24907ec..c9b855a 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,13 @@ Work in progress implementation of std::optional with monadic extensions [![Linux Build Status](https://travis-ci.org/TartanLlama/monadic-optional.png?branch=master)](https://travis-ci.org/TartanLlama/monadic-optional) + +### Compiler support + +Tested on: + +- clang 3.9 +- clang 3.8 +- g++ 7.2 +- g++ 5.4 +- g++ 4.8.5 diff --git a/tests/constexpr.cpp b/tests/constexpr.cpp index ba8c3c5..8035584 100644 --- a/tests/constexpr.cpp +++ b/tests/constexpr.cpp @@ -9,14 +9,12 @@ TEST_CASE("Constexpr", "[constexpr]") { SECTION("empty construct") { - constexpr tl::optional o1; constexpr tl::optional o2{}; constexpr tl::optional o3 = {}; constexpr tl::optional o4 = tl::nullopt; constexpr tl::optional o5 = {tl::nullopt}; constexpr tl::optional o6(tl::nullopt); - STATIC_REQUIRE(!o1); STATIC_REQUIRE(!o2); STATIC_REQUIRE(!o3); STATIC_REQUIRE(!o4);