revert removal of code

This commit is contained in:
Niels Lohmann 2021-10-20 14:23:56 +02:00
parent 03a75d58fc
commit c33bac8352
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
2 changed files with 4 additions and 0 deletions

View File

@ -147,6 +147,8 @@ struct static_const
static constexpr T value{}; static constexpr T value{};
}; };
template<typename T>
constexpr T static_const<T>::value; // NOLINT(readability-redundant-declaration)
} // namespace detail } // namespace detail
} // namespace nlohmann } // namespace nlohmann

View File

@ -3314,6 +3314,8 @@ struct static_const
static constexpr T value{}; static constexpr T value{};
}; };
template<typename T>
constexpr T static_const<T>::value; // NOLINT(readability-redundant-declaration)
} // namespace detail } // namespace detail
} // namespace nlohmann } // namespace nlohmann