Skip to content

Commit

Permalink
Merge clang & msvc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier authored Mar 6, 2024
1 parent 1dc0f53 commit 6fc408b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions test/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Distributed under the Boost Software License, Version 1.0.
retcode = 1; \
}

#if defined(__clang__)
#if defined(__clang__) || defined(_MSC_VER)
template <class T> struct is_literal_type
{
static constexpr bool value = __is_literal_type(T);
Expand All @@ -67,12 +67,6 @@ template <class T> struct is_literal_type
static constexpr bool value = std::is_literal_type<T>::value;
};
#pragma GCC diagnostic pop
#elif defined(_MSC_VER)
template <class T> struct is_literal_type
{
static constexpr bool value = __is_literal_type(T);
};
#else
#error "Don't know how to implement is_literal_type"
#endif

Expand Down Expand Up @@ -749,4 +743,4 @@ int main()

printf("\nExiting tests with code %d\n", retcode);
return retcode;
}
}

0 comments on commit 6fc408b

Please sign in to comment.