Commit 9d9642c
committed
client: use universal reference in data decoder
Our MsgPack decoder allows to pass rvalue reference - it is needed to
use tags like `mpp::as_raw` or handy `std::forward_as_tuple` helper.
However, we accept only lvalues in the data decoder, hence, client
cannot use those features of MsgPack decoder. Let's accept universal
reference instead to accept both lvalues and rvalues in client data
decoder - do not forget to use `std::forward` for perfect passing.
Closes #1061 parent f8e2cee commit 9d9642c
2 files changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1125 | 1125 | | |
1126 | 1126 | | |
1127 | 1127 | | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
1128 | 1139 | | |
1129 | 1140 | | |
1130 | 1141 | | |
| |||
0 commit comments