Skip to content

Commit

Permalink
🚨 Suppress warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
yosh-matsuda committed Feb 10, 2024
1 parent 814bbf9 commit 25b6aa7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion include/field_reflection.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*===================================================*
| field-reflection version v0.2.0 |
| field-reflection version v0.2.1 |
| https://github.com/yosh-matsuda/field-reflection |
| |
| Copyright (c) 2024 Yoshiki Matsuda @yosh-matsuda |
Expand All @@ -22,6 +22,11 @@ namespace field_reflection
{
namespace detail
{

#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wundefined-inline"
#endif
template <typename T, std::size_t = 0>
struct any_lref
{
Expand Down Expand Up @@ -78,6 +83,9 @@ namespace field_reflection
requires std::is_base_of_v<U, T>
constexpr operator U() const&& noexcept; // NOLINT
};
#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic pop
#endif

template <typename T, std::size_t ArgNum>
concept constructible = []() {
Expand Down

0 comments on commit 25b6aa7

Please sign in to comment.