Skip to content

Commit

Permalink
Add variable template config
Browse files Browse the repository at this point in the history
  • Loading branch information
pfultz2 committed Apr 28, 2016
1 parent 4952d79 commit 66d7d7d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions include/fit/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
#define FIT_HAS_RELAXED_CONSTEXPR 0
#endif
#else
#define FIT_HAS_RELAXED_CONSTEXPR !FIT_HAS_STD_14
#define FIT_HAS_RELAXED_CONSTEXPR FIT_HAS_STD_14
#endif
#endif

Expand All @@ -73,7 +73,16 @@
#if defined(__cpp_generic_lambdas) || defined(_MSC_VER)
#define FIT_HAS_GENERIC_LAMBDA 1
#else
#define FIT_HAS_GENERIC_LAMBDA !FIT_HAS_STD_14
#define FIT_HAS_GENERIC_LAMBDA FIT_HAS_STD_14
#endif
#endif

// Whether the compiler supports variable templates
#ifndef FIT_HAS_VARIABLE_TEMPLATES
#if defined(__cpp_variable_templates) || defined(_MSC_VER)
#define FIT_HAS_VARIABLE_TEMPLATES 1
#else
#define FIT_HAS_VARIABLE_TEMPLATES FIT_HAS_STD_14
#endif
#endif

Expand Down

0 comments on commit 66d7d7d

Please sign in to comment.