Skip to content
Snippets Groups Projects
Commit cb7ddaca authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[BL] Add explicit deduction guide for clang-16

parent 8360e1d1
No related branches found
No related tags found
No related merge requests found
...@@ -319,5 +319,13 @@ struct Overloaded : Ts... ...@@ -319,5 +319,13 @@ struct Overloaded : Ts...
{ {
using Ts::operator()...; using Ts::operator()...;
}; };
#if defined(__clang__)
#if ((__clang_major__ == 16 && !defined(__apple_build_version__)) || \
(__clang_major__ == 15 && defined(__apple_build_version__)))
/// Explicit deduction guide needed for apple's clang-15 and clang-16.
template <class... Ts>
Overloaded(Ts...) -> Overloaded<Ts...>;
#endif
#endif
} // namespace BaseLib } // namespace BaseLib
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment