Add explicit deduction guide for FlagRegistration (#5141)

This fixes a -Wctad-maybe-unsupported error.
This commit is contained in:
James Price 2023-03-07 16:44:56 -05:00 committed by GitHub
parent 3033cf428e
commit 690a9a4060
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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_