mirror of
https://github.com/TomHarte/CLK.git
synced 2024-10-18 23:23:56 +00:00
t
may be unused, per the if constexpr
.
This commit is contained in:
parent
48ad4d4c4c
commit
5a46853075
@ -323,7 +323,7 @@ template <typename Owner> class StructImpl: public Struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
template <typename Type> bool declare_reflectable(Type *t, const std::string &name) {
|
template <typename Type> bool declare_reflectable([[maybe_unused]] Type *t, const std::string &name) {
|
||||||
if constexpr (std::is_base_of<Reflection::Struct, Type>::value) {
|
if constexpr (std::is_base_of<Reflection::Struct, Type>::value) {
|
||||||
Reflection::Struct *const str = static_cast<Reflection::Struct *>(t);
|
Reflection::Struct *const str = static_cast<Reflection::Struct *>(t);
|
||||||
declare_emplace(str, name);
|
declare_emplace(str, name);
|
||||||
|
Loading…
Reference in New Issue
Block a user