File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1161,12 +1161,11 @@ class ParamsStream
1161
1161
template <typename Params, typename T>
1162
1162
class ParamsWrapper
1163
1163
{
1164
- static_assert (std::is_lvalue_reference<T>::value, " ParamsWrapper needs an lvalue reference type T" );
1165
1164
const Params& m_params;
1166
- T m_object;
1165
+ T& m_object;
1167
1166
1168
1167
public:
1169
- explicit ParamsWrapper (const Params& params, T obj) : m_params{params}, m_object{obj} {}
1168
+ explicit ParamsWrapper (const Params& params, T& obj) : m_params{params}, m_object{obj} {}
1170
1169
1171
1170
template <typename Stream>
1172
1171
void Serialize (Stream& s) const
@@ -1190,7 +1189,7 @@ class ParamsWrapper
1190
1189
template <typename Params, typename T>
1191
1190
static auto WithParams (const Params& params, T&& t)
1192
1191
{
1193
- return ParamsWrapper<Params, T& >{params, t};
1192
+ return ParamsWrapper<Params, T>{params, t};
1194
1193
}
1195
1194
1196
1195
#endif // BITCOIN_SERIALIZE_H
You can’t perform that action at this time.
0 commit comments