Skip to content

Commit

Permalink
use std::enable_if_t
Browse files Browse the repository at this point in the history
  • Loading branch information
marzer committed Jul 26, 2023
1 parent 017f6ec commit 043c12c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/soagen/hpp/generated/preprocessor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@

#ifndef SOAGEN_ENABLE_IF
#if !SOAGEN_DOXYGEN
#define SOAGEN_ENABLE_IF_T(T, ...) typename std::enable_if<!!(__VA_ARGS__), T>::type
#define SOAGEN_ENABLE_IF_T(T, ...) std::enable_if_t<!!(__VA_ARGS__), T>
#define SOAGEN_ENABLE_IF(...) , SOAGEN_ENABLE_IF_T(int, __VA_ARGS__) = 0
#else
#define SOAGEN_ENABLE_IF_T(T, ...)
Expand Down
2 changes: 1 addition & 1 deletion src/soagen/hpp/single/soagen.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@

#ifndef SOAGEN_ENABLE_IF
#if !SOAGEN_DOXYGEN
#define SOAGEN_ENABLE_IF_T(T, ...) typename std::enable_if<!!(__VA_ARGS__), T>::type
#define SOAGEN_ENABLE_IF_T(T, ...) std::enable_if_t<!!(__VA_ARGS__), T>
#define SOAGEN_ENABLE_IF(...) , SOAGEN_ENABLE_IF_T(int, __VA_ARGS__) = 0
#else
#define SOAGEN_ENABLE_IF_T(T, ...)
Expand Down

0 comments on commit 043c12c

Please sign in to comment.