Skip to content

Commit

Permalink
Merge pull request #67 from jcelerier/master
Browse files Browse the repository at this point in the history
Fix build on macOS with recent clang
  • Loading branch information
ned14 committed Mar 8, 2024
2 parents f538be8 + 40307a9 commit 41e7d25
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions test/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,10 @@ Distributed under the Boost Software License, Version 1.0.
retcode = 1; \
}

#ifdef __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
#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

// An error coding with multiple success values
enum class Code : size_t
Expand Down Expand Up @@ -744,4 +732,4 @@ int main()

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

0 comments on commit 41e7d25

Please sign in to comment.