Skip to content

Commit

Permalink
Add explicit deduction guide for Overloaded
Browse files Browse the repository at this point in the history
It is not needed as of C++20, but older clang versions are failing.
Fixes build for clang <=16
  • Loading branch information
alexkaratarakis committed Nov 20, 2024
1 parent aba74d5 commit 4edc397
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/fixed_containers/concepts.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ struct Overloaded : Ts...
{
using Ts::operator()...;
};
template <class... Ts>
Overloaded(Ts...) -> Overloaded<Ts...>;

// a "void-like" type, but without the hassle
// e.g. EmptyValue& is a valid type
Expand Down

0 comments on commit 4edc397

Please sign in to comment.