Skip to content

Commit

Permalink
Compare against C++ language version with >= instead of ==.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidstone authored and quicknir committed Apr 27, 2020
1 parent 2dab753 commit 7fb8445
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wise_enum_detail.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

// optional type needed for interface
#ifndef WISE_ENUM_OPTIONAL_TYPE
#if __cplusplus == 201703L
#if __cplusplus >= 201703L
#include <optional>
namespace wise_enum {
template <class T>
Expand All @@ -28,7 +28,7 @@ using optional_type = WISE_ENUM_OPTIONAL_TYPE<T>;

// Choice of string_view if type defined, otherwise use string literal
#ifndef WISE_ENUM_STRING_TYPE
#if __cplusplus == 201703L
#if __cplusplus >= 201703L
#include <string_view>
namespace wise_enum {
using string_type = std::string_view;
Expand Down

0 comments on commit 7fb8445

Please sign in to comment.