-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
G-API: "range for" result reference warning near ade::util::indexed() #18928
Copy link
Copy link
Closed
Description
Xcode 12.2:
modules/gapi/src/backends/ocl/goclbackend.cpp:234:26: warning:
loop variable 'out_it' is always a copy because the range of type
'decltype(zip(iota<std::size_t>(), std::forward<const std::__1::vector<cv::gimpl::RcDesc, std::__1::allocator<cv::gimpl::RcDesc> > &>(conts)))' (aka 'ZipRange<ade::util::Range::IotaRange<unsigned long, 1>, const std::__1::vector<cv::gimpl::RcDesc, std::__1::allocator<cv::gimpl::RcDesc> > &>')
does not return a reference [-Wrange-loop-analysis]
for (const auto &out_it : ade::util::indexed(op.outs))
^
modules/gapi/src/backends/ocl/goclbackend.cpp:234:14: note:
use non-reference type 'std::__1::tuple<const unsigned long &, const cv::gimpl::RcDesc &>'
for (const auto &out_it : ade::util::indexed(op.outs))
^~~~~~~~~~~~~~~~~~~~
Reactions are currently unavailable