mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-10-18 11:10:05 +00:00
Add explicit deduction guide for FlagRegistration (#5141)
This fixes a -Wctad-maybe-unsupported error.
This commit is contained in:
parent
3033cf428e
commit
690a9a4060
@ -253,6 +253,10 @@ struct FlagRegistration {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Explicit deduction guide to avoid `-Wctad-maybe-unsupported`.
|
||||||
|
template <typename T>
|
||||||
|
FlagRegistration(Flag<T>&, std::string&&, bool, bool) -> FlagRegistration<T>;
|
||||||
|
|
||||||
} // namespace flags
|
} // namespace flags
|
||||||
|
|
||||||
#endif // INCLUDE_SPIRV_TOOLS_UTIL_FLAGS_HPP_
|
#endif // INCLUDE_SPIRV_TOOLS_UTIL_FLAGS_HPP_
|
||||||
|
Loading…
Reference in New Issue
Block a user