Skip to content

Commit

Permalink
Merge pull request #31 from dmatveev/dm/fix_C4067
Browse files Browse the repository at this point in the history
Fix C4067 MSVC warning in type_traits.hpp
  • Loading branch information
dmatveev authored Aug 26, 2022
2 parents b3891e5 + 3004a56 commit 7f36350
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions sources/ade/include/ade/util/type_traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@
#define ADE_UTIL_TYPE_TRAITS_HPP

#include <type_traits>
#if defined (__has_include) && __has_include(<version>)
#include <version>
#endif

// NB: Had to write it like this due to MSVC warning C4067
#if defined(__has_include)
#if __has_include(<version>)
# include <version>
#endif
#endif

namespace ade
{
Expand Down

0 comments on commit 7f36350

Please sign in to comment.