Skip to content

Commit

Permalink
#2212: param: fix missing decay_t causing lack of detection of proper…
Browse files Browse the repository at this point in the history
…ties
  • Loading branch information
lifflander committed Nov 29, 2023
1 parent e7efdac commit dc81d4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vt/messaging/param_msg.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ struct ParamMsg<

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 @@ -190,7 +190,7 @@ struct ParamMsg<

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 dc81d4e

Please sign in to comment.