@@ -274,15 +274,15 @@ void MaybeReadField(std::false_type, Args&&...)
274
274
}
275
275
276
276
template <typename LocalType, typename Value, typename Output>
277
- void MaybeSetWant (TypeList<LocalType*>, Priority<1 >, Value& & value, Output&& output)
277
+ void MaybeSetWant (TypeList<LocalType*>, Priority<1 >, const Value& value, Output&& output)
278
278
{
279
279
if (value) {
280
280
output.setWant ();
281
281
}
282
282
}
283
283
284
284
template <typename LocalTypes, typename ... Args>
285
- void MaybeSetWant (LocalTypes, Priority<0 >, Args& &...)
285
+ void MaybeSetWant (LocalTypes, Priority<0 >, const Args&...)
286
286
{
287
287
}
288
288
@@ -393,10 +393,10 @@ struct ClientParam
393
393
void handleField (ClientInvokeContext& invoke_context, Params& params, ParamList)
394
394
{
395
395
auto const fun = [&]<typename ... Values>(Values&&... values) {
396
+ MaybeSetWant (
397
+ ParamList (), Priority<1 >(), values..., Make<StructField, Accessor>(params));
396
398
MaybeBuildField (std::integral_constant<bool , Accessor::in>(), ParamList (), invoke_context,
397
399
Make<StructField, Accessor>(params), std::forward<Values>(values)...);
398
- MaybeSetWant (
399
- ParamList (), Priority<1 >(), std::forward<Values>(values)..., Make<StructField, Accessor>(params));
400
400
};
401
401
402
402
// Note: The m_values tuple just consists of lvalue and rvalue
0 commit comments