Skip to content

Commit

Permalink
#2212: collection: add decay_t for collection parameterized messages
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Nov 30, 2023
1 parent ae4bae5 commit e38bed2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vt/vrt/collection/messages/param_col_msg.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ struct ParamColMsg<

template <typename Param, typename... Params>
void setParams(Param&& p, Params&&... in_params) {
if constexpr (std::is_same_v<Param, MsgProps>) {
if constexpr (std::is_same_v<std::decay_t<Param>, MsgProps>) {
params = TupleType{std::forward<Params>(in_params)...};
p.apply(this);
} else {
Expand Down Expand Up @@ -99,7 +99,7 @@ struct ParamColMsg<

template <typename Param, typename... Params>
void setParams(Param&& p, Params&&... in_params) {
if constexpr (std::is_same_v<Param, MsgProps>) {
if constexpr (std::is_same_v<std::decay_t<Param>, MsgProps>) {
params = std::make_unique<TupleType>(std::forward<Params>(in_params)...);
p.apply(this);
} else {
Expand Down

0 comments on commit e38bed2

Please sign in to comment.