mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
GAPI: fix C++17 compilation errors in GNetPackage (fixes #17385)
- explicitly declared default constructor - made initilizer_list constructor to accept the list by copy -- as it is more canonical (and as copying the initializer_list does not force copy of the list items) -- current version anyway does not do what it is intended to
This commit is contained in:
@@ -16,8 +16,8 @@
|
||||
|
||||
#include <opencv2/gapi/infer.hpp>
|
||||
|
||||
cv::gapi::GNetPackage::GNetPackage(std::initializer_list<GNetParam> &&ii)
|
||||
: networks(std::move(ii)) {
|
||||
cv::gapi::GNetPackage::GNetPackage(std::initializer_list<GNetParam> ii)
|
||||
: networks(ii) {
|
||||
}
|
||||
|
||||
std::vector<cv::gapi::GBackend> cv::gapi::GNetPackage::backends() const {
|
||||
|
||||
Reference in New Issue
Block a user