From 4ce32056c66cfa5222cd09d9b6528fc6c78b421c Mon Sep 17 00:00:00 2001 From: Sy Brand Date: Wed, 15 Feb 2023 16:06:01 +0000 Subject: [PATCH] Use assert in C++14+ --- include/tl/expected.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/tl/expected.hpp b/include/tl/expected.hpp index 4bc30ad..688a7e0 100644 --- a/include/tl/expected.hpp +++ b/include/tl/expected.hpp @@ -29,6 +29,8 @@ #if (__cplusplus > 201103L) //can't have assert in constexpr in C++11 #include #define TL_ASSERT assert +#else +#define TL_ASSERT #endif #endif