Skip to content

Commit

Permalink
implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20
Browse files Browse the repository at this point in the history
  • Loading branch information
jchen351 committed Jul 19, 2024
1 parent 2452708 commit 0a2d22b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@ Status MIGraphXExecutionProvider::Compile(const std::vector<FusedNodeAndGraph>&
map_input_index_[fused_node.Name()] = input_name_index;
map_no_input_shape_[fused_node.Name()] = no_input_shape;
NodeComputeInfo compute_info;
compute_info.create_state_func = [=](ComputeContext* context, FunctionState* state) {
compute_info.create_state_func = [=,this](ComputeContext* context, FunctionState* state) {

Check warning on line 1215 in onnxruntime/core/providers/migraphx/migraphx_execution_provider.cc

View workflow job for this annotation

GitHub Actions / Lint C++

[cpplint] reported by reviewdog 🐶 Missing space after , [whitespace/comma] [3] Raw Output: onnxruntime/core/providers/migraphx/migraphx_execution_provider.cc:1215: Missing space after , [whitespace/comma] [3]
std::unique_ptr<MIGraphXFuncState> p = std::make_unique<MIGraphXFuncState>();
*p = {context->allocate_func, context->release_func, context->allocator_handle, map_progs_[context->node_name],
map_onnx_string_[context->node_name], options, t_, map_input_index_[context->node_name], &mgx_mu_,
Expand Down

0 comments on commit 0a2d22b

Please sign in to comment.