Skip to content

Commit 4d7c66c

Browse files
committed
Fixed cpp version check.
1 parent b8b37ac commit 4d7c66c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interval_tree.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,7 @@ namespace lib_interval_tree
11941194
template <bool Exclusive>
11951195
node_type* overlap_find_i(node_type* ptr, interval_type const& ival)
11961196
{
1197-
#if __cplusplus > 201703L
1197+
#if __cplusplus >= 201703L
11981198
if constexpr (Exclusive)
11991199
#else
12001200
if (Exclusive)
@@ -1215,7 +1215,7 @@ namespace lib_interval_tree
12151215
template <bool Exclusive, typename IteratorT, typename FunctionT>
12161216
bool overlap_find_all_i(node_type* ptr, interval_type const& ival, FunctionT const& on_find)
12171217
{
1218-
#if __cplusplus > 201703L
1218+
#if __cplusplus >= 201703L
12191219
if constexpr (Exclusive)
12201220
#else
12211221
if (Exclusive)

0 commit comments

Comments
 (0)