Skip to content

Commit

Permalink
Added deduction guide for aggregate
Browse files Browse the repository at this point in the history
  • Loading branch information
gracicot committed Dec 23, 2024
1 parent 94461d2 commit 18e895f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/kangaru/detail/source_from_tag.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ namespace kangaru {
Source source;
};

template<source Source>
with_source_from_tag(Source) -> with_source_from_tag<Source>;

template<forwarded_source Source>
inline constexpr auto make_source_with_source_from_tag(Source&& source) {
return with_source_from_tag<std::decay_t<Source>>{KANGARU5_FWD(source)};
Expand Down

0 comments on commit 18e895f

Please sign in to comment.