Skip to content

Commit

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

#if defined(__clang__) || defined(_MSC_VER)
template <class T> struct is_literal_type
{
static constexpr bool value = __is_literal_type(T);
};
#elif defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
template <class T> struct is_literal_type
{
static constexpr bool value = std::is_literal_type<T>::value;
};
#pragma GCC diagnostic pop
#error "Don't know how to implement is_literal_type"
#endif

// An error coding with multiple success values
enum class Code : size_t
Expand Down

0 comments on commit 40307a9

Please sign in to comment.