When compiling the project using make with gcc 9.3.0 under Ubuntu 20.4 LTS the log below appears.
The log suggests that some problems exists with a constructor method and a memcpy. The code was modified in order to overcome with these warnings.
[ 2%] Building CXX object src/third-party/CMakeFiles/lodepng.dir/lodepng/lodepng.cc.o
[ 5%] Linking CXX static library liblodepng.a
[ 5%] Built target lodepng
[ 7%] Building CXX object src/CMakeFiles/openpano.dir/feature/brief.cc.o
[ 10%] Building CXX object src/CMakeFiles/openpano.dir/feature/dist.cc.o
[ 13%] Building CXX object src/CMakeFiles/openpano.dir/feature/dog.cc.o
In file included from /home/thebittendonut/dev/OpenPano/src/lib/imgproc.hh:8,
from /home/thebittendonut/dev/OpenPano/src/feature/dog.cc:10:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh: In constructor ‘pano::Color::Color(const Vector<float>&)’:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh:18:19: warning: implicitly-declared ‘constexpr Vector<float>::Vector(const Vector<float>&)’ is deprecated [-Wdeprecated-copy]
18 | Vector<float>(v) {}
| ^
In file included from /home/thebittendonut/dev/OpenPano/src/lib/color.hh:7,
from /home/thebittendonut/dev/OpenPano/src/lib/imgproc.hh:8,
from /home/thebittendonut/dev/OpenPano/src/feature/dog.cc:10:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<float>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = float]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
[ 15%] Building CXX object src/CMakeFiles/openpano.dir/feature/extrema.cc.o
[ 18%] Building CXX object src/CMakeFiles/openpano.dir/feature/feature.cc.o
In file included from /home/thebittendonut/dev/OpenPano/src/lib/imgproc.hh:8,
from /home/thebittendonut/dev/OpenPano/src/feature/feature.cc:12:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh: In constructor ‘pano::Color::Color(const Vector<float>&)’:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh:18:19: warning: implicitly-declared ‘constexpr Vector<float>::Vector(const Vector<float>&)’ is deprecated [-Wdeprecated-copy]
18 | Vector<float>(v) {}
| ^
In file included from /home/thebittendonut/dev/OpenPano/src/feature/feature.hh:9,
from /home/thebittendonut/dev/OpenPano/src/feature/feature.cc:5:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<float>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = float]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
[ 21%] Building CXX object src/CMakeFiles/openpano.dir/feature/gaussian.cc.o
[ 23%] Building CXX object src/CMakeFiles/openpano.dir/feature/matcher.cc.o
[ 26%] Building CXX object src/CMakeFiles/openpano.dir/feature/orientation.cc.o
[ 28%] Building CXX object src/CMakeFiles/openpano.dir/feature/sift.cc.o
[ 31%] Building CXX object src/CMakeFiles/openpano.dir/lib/color.cc.o
In file included from /home/thebittendonut/dev/OpenPano/src/lib/color.cc:6:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh: In constructor ‘pano::Color::Color(const Vector<float>&)’:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh:18:19: warning: implicitly-declared ‘constexpr Vector<float>::Vector(const Vector<float>&)’ is deprecated [-Wdeprecated-copy]
18 | Vector<float>(v) {}
| ^
In file included from /home/thebittendonut/dev/OpenPano/src/lib/color.hh:7,
from /home/thebittendonut/dev/OpenPano/src/lib/color.cc:6:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<float>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = float]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
[ 34%] Building CXX object src/CMakeFiles/openpano.dir/lib/config.cc.o
[ 36%] Building CXX object src/CMakeFiles/openpano.dir/lib/debugutils.cc.o
[ 39%] Building CXX object src/CMakeFiles/openpano.dir/lib/imgio.cc.o
In file included from /home/thebittendonut/dev/OpenPano/src/lib/imgproc.hh:8,
from /home/thebittendonut/dev/OpenPano/src/lib/imgio.cc:16:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh: In constructor ‘pano::Color::Color(const Vector<float>&)’:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh:18:19: warning: implicitly-declared ‘constexpr Vector<float>::Vector(const Vector<float>&)’ is deprecated [-Wdeprecated-copy]
18 | Vector<float>(v) {}
| ^
In file included from /home/thebittendonut/dev/OpenPano/src/lib/color.hh:7,
from /home/thebittendonut/dev/OpenPano/src/lib/imgproc.hh:8,
from /home/thebittendonut/dev/OpenPano/src/lib/imgio.cc:16:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<float>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = float]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
[ 42%] Building CXX object src/CMakeFiles/openpano.dir/lib/imgproc.cc.o
In file included from /home/thebittendonut/dev/OpenPano/src/lib/imgproc.hh:8,
from /home/thebittendonut/dev/OpenPano/src/lib/imgproc.cc:4:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh: In constructor ‘pano::Color::Color(const Vector<float>&)’:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh:18:19: warning: implicitly-declared ‘constexpr Vector<float>::Vector(const Vector<float>&)’ is deprecated [-Wdeprecated-copy]
18 | Vector<float>(v) {}
| ^
In file included from /home/thebittendonut/dev/OpenPano/src/lib/color.hh:7,
from /home/thebittendonut/dev/OpenPano/src/lib/imgproc.hh:8,
from /home/thebittendonut/dev/OpenPano/src/lib/imgproc.cc:4:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<float>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = float]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
[ 44%] Building CXX object src/CMakeFiles/openpano.dir/lib/kdtree.cc.o
[ 47%] Building CXX object src/CMakeFiles/openpano.dir/lib/matrix.cc.o
[ 50%] Building CXX object src/CMakeFiles/openpano.dir/lib/planedrawer.cc.o
In file included from /home/thebittendonut/dev/OpenPano/src/lib/planedrawer.hh:6,
from /home/thebittendonut/dev/OpenPano/src/lib/planedrawer.cc:5:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh: In constructor ‘pano::Color::Color(const Vector<float>&)’:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh:18:19: warning: implicitly-declared ‘constexpr Vector<float>::Vector(const Vector<float>&)’ is deprecated [-Wdeprecated-copy]
18 | Vector<float>(v) {}
| ^
In file included from /home/thebittendonut/dev/OpenPano/src/lib/color.hh:7,
from /home/thebittendonut/dev/OpenPano/src/lib/planedrawer.hh:6,
from /home/thebittendonut/dev/OpenPano/src/lib/planedrawer.cc:5:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<float>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = float]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
[ 52%] Building CXX object src/CMakeFiles/openpano.dir/lib/polygon.cc.o
[ 55%] Building CXX object src/CMakeFiles/openpano.dir/lib/timer.cc.o
[ 57%] Building CXX object src/CMakeFiles/openpano.dir/lib/utils.cc.o
[ 60%] Building CXX object src/CMakeFiles/openpano.dir/stitch/blender.cc.o
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/blender.hh:9,
from /home/thebittendonut/dev/OpenPano/src/stitch/blender.cc:4:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh: In constructor ‘pano::Color::Color(const Vector<float>&)’:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh:18:19: warning: implicitly-declared ‘constexpr Vector<float>::Vector(const Vector<float>&)’ is deprecated [-Wdeprecated-copy]
18 | Vector<float>(v) {}
| ^
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/blender.hh:8,
from /home/thebittendonut/dev/OpenPano/src/stitch/blender.cc:4:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<float>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = float]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/match_info.hh:9,
from /home/thebittendonut/dev/OpenPano/src/stitch/imageref.hh:9,
from /home/thebittendonut/dev/OpenPano/src/stitch/blender.hh:10,
from /home/thebittendonut/dev/OpenPano/src/stitch/blender.cc:4:
/home/thebittendonut/dev/OpenPano/src/stitch/homography.hh: In member function ‘Vec pano::Homography::trans(const Vec&) const’:
/home/thebittendonut/dev/OpenPano/src/stitch/homography.hh:57:11: warning: implicitly-declared ‘constexpr Vector<double>::Vector(const Vector<double>&)’ is deprecated [-Wdeprecated-copy]
57 | return ret;
| ^~~
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/blender.hh:8,
from /home/thebittendonut/dev/OpenPano/src/stitch/blender.cc:4:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<double>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = double]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
[ 63%] Building CXX object src/CMakeFiles/openpano.dir/stitch/camera.cc.o
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/camera.hh:6,
from /home/thebittendonut/dev/OpenPano/src/stitch/camera.cc:4:
/home/thebittendonut/dev/OpenPano/src/stitch/homography.hh: In member function ‘Vec pano::Homography::trans(const Vec&) const’:
/home/thebittendonut/dev/OpenPano/src/stitch/homography.hh:57:11: warning: implicitly-declared ‘constexpr Vector<double>::Vector(const Vector<double>&)’ is deprecated [-Wdeprecated-copy]
57 | return ret;
| ^~~
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/homography.hh:6,
from /home/thebittendonut/dev/OpenPano/src/stitch/camera.hh:6,
from /home/thebittendonut/dev/OpenPano/src/stitch/camera.cc:4:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<double>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = double]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
[ 65%] Building CXX object src/CMakeFiles/openpano.dir/stitch/camera_estimator.cc.o
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/camera.hh:6,
from /home/thebittendonut/dev/OpenPano/src/stitch/camera_estimator.cc:12:
/home/thebittendonut/dev/OpenPano/src/stitch/homography.hh: In member function ‘Vec pano::Homography::trans(const Vec&) const’:
/home/thebittendonut/dev/OpenPano/src/stitch/homography.hh:57:11: warning: implicitly-declared ‘constexpr Vector<double>::Vector(const Vector<double>&)’ is deprecated [-Wdeprecated-copy]
57 | return ret;
| ^~~
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/homography.hh:6,
from /home/thebittendonut/dev/OpenPano/src/stitch/camera.hh:6,
from /home/thebittendonut/dev/OpenPano/src/stitch/camera_estimator.cc:12:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<double>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = double]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
[ 68%] Building CXX object src/CMakeFiles/openpano.dir/stitch/cylstitcher.cc.o
In file included from /home/thebittendonut/dev/OpenPano/src/lib/imgproc.hh:8,
from /home/thebittendonut/dev/OpenPano/src/stitch/imageref.hh:8,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcherbase.hh:10,
from /home/thebittendonut/dev/OpenPano/src/stitch/cylstitcher.hh:6,
from /home/thebittendonut/dev/OpenPano/src/stitch/cylstitcher.cc:4:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh: In constructor ‘pano::Color::Color(const Vector<float>&)’:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh:18:19: warning: implicitly-declared ‘constexpr Vector<float>::Vector(const Vector<float>&)’ is deprecated [-Wdeprecated-copy]
18 | Vector<float>(v) {}
| ^
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/stitcherbase.hh:8,
from /home/thebittendonut/dev/OpenPano/src/stitch/cylstitcher.hh:6,
from /home/thebittendonut/dev/OpenPano/src/stitch/cylstitcher.cc:4:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<float>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = float]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/match_info.hh:9,
from /home/thebittendonut/dev/OpenPano/src/stitch/imageref.hh:9,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcherbase.hh:10,
from /home/thebittendonut/dev/OpenPano/src/stitch/cylstitcher.hh:6,
from /home/thebittendonut/dev/OpenPano/src/stitch/cylstitcher.cc:4:
/home/thebittendonut/dev/OpenPano/src/stitch/homography.hh: In member function ‘Vec pano::Homography::trans(const Vec&) const’:
/home/thebittendonut/dev/OpenPano/src/stitch/homography.hh:57:11: warning: implicitly-declared ‘constexpr Vector<double>::Vector(const Vector<double>&)’ is deprecated [-Wdeprecated-copy]
57 | return ret;
| ^~~
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/stitcherbase.hh:8,
from /home/thebittendonut/dev/OpenPano/src/stitch/cylstitcher.hh:6,
from /home/thebittendonut/dev/OpenPano/src/stitch/cylstitcher.cc:4:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<double>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = double]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/cylstitcher.cc:13:
/home/thebittendonut/dev/OpenPano/src/stitch/warp.hh: In constructor ‘pano::CylinderProject::CylinderProject(int, const Vec&, int)’:
/home/thebittendonut/dev/OpenPano/src/stitch/warp.hh:22:21: warning: implicitly-declared ‘constexpr Vector<double>::Vector(const Vector<double>&)’ is deprecated [-Wdeprecated-copy]
22 | sizefactor(m_size){}
| ^
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/stitcherbase.hh:8,
from /home/thebittendonut/dev/OpenPano/src/stitch/cylstitcher.hh:6,
from /home/thebittendonut/dev/OpenPano/src/stitch/cylstitcher.cc:4:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<double>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = double]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
[ 71%] Building CXX object src/CMakeFiles/openpano.dir/stitch/debug.cc.o
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/blender.hh:9,
from /home/thebittendonut/dev/OpenPano/src/stitch/debug.cc:4:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh: In constructor ‘pano::Color::Color(const Vector<float>&)’:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh:18:19: warning: implicitly-declared ‘constexpr Vector<float>::Vector(const Vector<float>&)’ is deprecated [-Wdeprecated-copy]
18 | Vector<float>(v) {}
| ^
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/blender.hh:8,
from /home/thebittendonut/dev/OpenPano/src/stitch/debug.cc:4:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<float>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = float]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/match_info.hh:9,
from /home/thebittendonut/dev/OpenPano/src/stitch/imageref.hh:9,
from /home/thebittendonut/dev/OpenPano/src/stitch/blender.hh:10,
from /home/thebittendonut/dev/OpenPano/src/stitch/debug.cc:4:
/home/thebittendonut/dev/OpenPano/src/stitch/homography.hh: In member function ‘Vec pano::Homography::trans(const Vec&) const’:
/home/thebittendonut/dev/OpenPano/src/stitch/homography.hh:57:11: warning: implicitly-declared ‘constexpr Vector<double>::Vector(const Vector<double>&)’ is deprecated [-Wdeprecated-copy]
57 | return ret;
| ^~~
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/blender.hh:8,
from /home/thebittendonut/dev/OpenPano/src/stitch/debug.cc:4:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<double>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = double]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
[ 73%] Building CXX object src/CMakeFiles/openpano.dir/stitch/homography.cc.o
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/homography.cc:4:
/home/thebittendonut/dev/OpenPano/src/stitch/homography.hh: In member function ‘Vec pano::Homography::trans(const Vec&) const’:
/home/thebittendonut/dev/OpenPano/src/stitch/homography.hh:57:11: warning: implicitly-declared ‘constexpr Vector<double>::Vector(const Vector<double>&)’ is deprecated [-Wdeprecated-copy]
57 | return ret;
| ^~~
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/homography.hh:6,
from /home/thebittendonut/dev/OpenPano/src/stitch/homography.cc:4:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<double>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = double]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
[ 76%] Building CXX object src/CMakeFiles/openpano.dir/stitch/incremental_bundle_adjuster.cc.o
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/camera.hh:6,
from /home/thebittendonut/dev/OpenPano/src/stitch/incremental_bundle_adjuster.hh:15,
from /home/thebittendonut/dev/OpenPano/src/stitch/incremental_bundle_adjuster.cc:4:
/home/thebittendonut/dev/OpenPano/src/stitch/homography.hh: In member function ‘Vec pano::Homography::trans(const Vec&) const’:
/home/thebittendonut/dev/OpenPano/src/stitch/homography.hh:57:11: warning: implicitly-declared ‘constexpr Vector<double>::Vector(const Vector<double>&)’ is deprecated [-Wdeprecated-copy]
57 | return ret;
| ^~~
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/homography.hh:6,
from /home/thebittendonut/dev/OpenPano/src/stitch/camera.hh:6,
from /home/thebittendonut/dev/OpenPano/src/stitch/incremental_bundle_adjuster.hh:15,
from /home/thebittendonut/dev/OpenPano/src/stitch/incremental_bundle_adjuster.cc:4:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<double>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = double]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
[ 78%] Building CXX object src/CMakeFiles/openpano.dir/stitch/multiband.cc.o
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/blender.hh:9,
from /home/thebittendonut/dev/OpenPano/src/stitch/multiband.hh:6,
from /home/thebittendonut/dev/OpenPano/src/stitch/multiband.cc:4:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh: In constructor ‘pano::Color::Color(const Vector<float>&)’:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh:18:19: warning: implicitly-declared ‘constexpr Vector<float>::Vector(const Vector<float>&)’ is deprecated [-Wdeprecated-copy]
18 | Vector<float>(v) {}
| ^
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/blender.hh:8,
from /home/thebittendonut/dev/OpenPano/src/stitch/multiband.hh:6,
from /home/thebittendonut/dev/OpenPano/src/stitch/multiband.cc:4:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<float>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = float]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/match_info.hh:9,
from /home/thebittendonut/dev/OpenPano/src/stitch/imageref.hh:9,
from /home/thebittendonut/dev/OpenPano/src/stitch/blender.hh:10,
from /home/thebittendonut/dev/OpenPano/src/stitch/multiband.hh:6,
from /home/thebittendonut/dev/OpenPano/src/stitch/multiband.cc:4:
/home/thebittendonut/dev/OpenPano/src/stitch/homography.hh: In member function ‘Vec pano::Homography::trans(const Vec&) const’:
/home/thebittendonut/dev/OpenPano/src/stitch/homography.hh:57:11: warning: implicitly-declared ‘constexpr Vector<double>::Vector(const Vector<double>&)’ is deprecated [-Wdeprecated-copy]
57 | return ret;
| ^~~
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/blender.hh:8,
from /home/thebittendonut/dev/OpenPano/src/stitch/multiband.hh:6,
from /home/thebittendonut/dev/OpenPano/src/stitch/multiband.cc:4:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<double>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = double]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/multiband.cc:6:
/home/thebittendonut/dev/OpenPano/src/feature/gaussian.hh: In instantiation of ‘Mat<T> pano::GaussianBlur::blur(const Mat<T>&) const [with T = pano::MultiBandBlender::WeightedPixel]’:
/home/thebittendonut/dev/OpenPano/src/stitch/multiband.cc:150:53: required from here
/home/thebittendonut/dev/OpenPano/src/feature/gaussian.hh:73:11: warning: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘struct pano::MultiBandBlender::WeightedPixel’ with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
73 | memcpy(cur_line, dest, sizeof(T) * w);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/multiband.cc:4:
/home/thebittendonut/dev/OpenPano/src/stitch/multiband.hh:13:9: note: ‘struct pano::MultiBandBlender::WeightedPixel’ declared here
13 | struct WeightedPixel {
| ^~~~~~~~~~~~~
[ 81%] Building CXX object src/CMakeFiles/openpano.dir/stitch/stitcher.cc.o
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/stitcher_image.hh:9,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcher.hh:10,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcher.cc:6:
/home/thebittendonut/dev/OpenPano/src/stitch/homography.hh: In member function ‘Vec pano::Homography::trans(const Vec&) const’:
/home/thebittendonut/dev/OpenPano/src/stitch/homography.hh:57:11: warning: implicitly-declared ‘constexpr Vector<double>::Vector(const Vector<double>&)’ is deprecated [-Wdeprecated-copy]
57 | return ret;
| ^~~
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/projection.hh:6,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcher_image.hh:8,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcher.hh:10,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcher.cc:6:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<double>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = double]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
In file included from /home/thebittendonut/dev/OpenPano/src/lib/imgproc.hh:8,
from /home/thebittendonut/dev/OpenPano/src/stitch/imageref.hh:8,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcher_image.hh:10,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcher.hh:10,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcher.cc:6:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh: In constructor ‘pano::Color::Color(const Vector<float>&)’:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh:18:19: warning: implicitly-declared ‘constexpr Vector<float>::Vector(const Vector<float>&)’ is deprecated [-Wdeprecated-copy]
18 | Vector<float>(v) {}
| ^
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/projection.hh:6,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcher_image.hh:8,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcher.hh:10,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcher.cc:6:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<float>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = float]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/stitcher.cc:21:
/home/thebittendonut/dev/OpenPano/src/stitch/warp.hh: In constructor ‘pano::CylinderProject::CylinderProject(int, const Vec&, int)’:
/home/thebittendonut/dev/OpenPano/src/stitch/warp.hh:22:21: warning: implicitly-declared ‘constexpr Vector<double>::Vector(const Vector<double>&)’ is deprecated [-Wdeprecated-copy]
22 | sizefactor(m_size){}
| ^
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/projection.hh:6,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcher_image.hh:8,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcher.hh:10,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcher.cc:6:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<double>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = double]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
[ 84%] Building CXX object src/CMakeFiles/openpano.dir/stitch/stitcher_image.cc.o
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/stitcher_image.hh:9,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcher_image.cc:9:
/home/thebittendonut/dev/OpenPano/src/stitch/homography.hh: In member function ‘Vec pano::Homography::trans(const Vec&) const’:
/home/thebittendonut/dev/OpenPano/src/stitch/homography.hh:57:11: warning: implicitly-declared ‘constexpr Vector<double>::Vector(const Vector<double>&)’ is deprecated [-Wdeprecated-copy]
57 | return ret;
| ^~~
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/projection.hh:6,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcher_image.hh:8,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcher_image.cc:9:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<double>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = double]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
In file included from /home/thebittendonut/dev/OpenPano/src/lib/imgproc.hh:8,
from /home/thebittendonut/dev/OpenPano/src/stitch/imageref.hh:8,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcher_image.hh:10,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcher_image.cc:9:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh: In constructor ‘pano::Color::Color(const Vector<float>&)’:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh:18:19: warning: implicitly-declared ‘constexpr Vector<float>::Vector(const Vector<float>&)’ is deprecated [-Wdeprecated-copy]
18 | Vector<float>(v) {}
| ^
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/projection.hh:6,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcher_image.hh:8,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcher_image.cc:9:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<float>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = float]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
[ 86%] Building CXX object src/CMakeFiles/openpano.dir/stitch/stitcherbase.cc.o
In file included from /home/thebittendonut/dev/OpenPano/src/lib/imgproc.hh:8,
from /home/thebittendonut/dev/OpenPano/src/stitch/imageref.hh:8,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcherbase.hh:10,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcherbase.cc:4:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh: In constructor ‘pano::Color::Color(const Vector<float>&)’:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh:18:19: warning: implicitly-declared ‘constexpr Vector<float>::Vector(const Vector<float>&)’ is deprecated [-Wdeprecated-copy]
18 | Vector<float>(v) {}
| ^
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/stitcherbase.hh:8,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcherbase.cc:4:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<float>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = float]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/match_info.hh:9,
from /home/thebittendonut/dev/OpenPano/src/stitch/imageref.hh:9,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcherbase.hh:10,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcherbase.cc:4:
/home/thebittendonut/dev/OpenPano/src/stitch/homography.hh: In member function ‘Vec pano::Homography::trans(const Vec&) const’:
/home/thebittendonut/dev/OpenPano/src/stitch/homography.hh:57:11: warning: implicitly-declared ‘constexpr Vector<double>::Vector(const Vector<double>&)’ is deprecated [-Wdeprecated-copy]
57 | return ret;
| ^~~
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/stitcherbase.hh:8,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcherbase.cc:4:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<double>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = double]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
[ 89%] Building CXX object src/CMakeFiles/openpano.dir/stitch/transform_estimate.cc.o
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/match_info.hh:9,
from /home/thebittendonut/dev/OpenPano/src/stitch/transform_estimate.hh:9,
from /home/thebittendonut/dev/OpenPano/src/stitch/transform_estimate.cc:5:
/home/thebittendonut/dev/OpenPano/src/stitch/homography.hh: In member function ‘Vec pano::Homography::trans(const Vec&) const’:
/home/thebittendonut/dev/OpenPano/src/stitch/homography.hh:57:11: warning: implicitly-declared ‘constexpr Vector<double>::Vector(const Vector<double>&)’ is deprecated [-Wdeprecated-copy]
57 | return ret;
| ^~~
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/transform_estimate.hh:8,
from /home/thebittendonut/dev/OpenPano/src/stitch/transform_estimate.cc:5:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<double>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = double]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
In file included from /home/thebittendonut/dev/OpenPano/src/lib/imgproc.hh:8,
from /home/thebittendonut/dev/OpenPano/src/stitch/transform_estimate.cc:14:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh: In constructor ‘pano::Color::Color(const Vector<float>&)’:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh:18:19: warning: implicitly-declared ‘constexpr Vector<float>::Vector(const Vector<float>&)’ is deprecated [-Wdeprecated-copy]
18 | Vector<float>(v) {}
| ^
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/transform_estimate.hh:8,
from /home/thebittendonut/dev/OpenPano/src/stitch/transform_estimate.cc:5:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<float>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = float]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
[ 92%] Building CXX object src/CMakeFiles/openpano.dir/stitch/warp.cc.o
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/match_info.hh:9,
from /home/thebittendonut/dev/OpenPano/src/stitch/warp.hh:9,
from /home/thebittendonut/dev/OpenPano/src/stitch/warp.cc:6:
/home/thebittendonut/dev/OpenPano/src/stitch/homography.hh: In member function ‘Vec pano::Homography::trans(const Vec&) const’:
/home/thebittendonut/dev/OpenPano/src/stitch/homography.hh:57:11: warning: implicitly-declared ‘constexpr Vector<double>::Vector(const Vector<double>&)’ is deprecated [-Wdeprecated-copy]
57 | return ret;
| ^~~
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/warp.hh:6,
from /home/thebittendonut/dev/OpenPano/src/stitch/warp.cc:6:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<double>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = double]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/warp.cc:6:
/home/thebittendonut/dev/OpenPano/src/stitch/warp.hh: In constructor ‘pano::CylinderProject::CylinderProject(int, const Vec&, int)’:
/home/thebittendonut/dev/OpenPano/src/stitch/warp.hh:22:21: warning: implicitly-declared ‘constexpr Vector<double>::Vector(const Vector<double>&)’ is deprecated [-Wdeprecated-copy]
22 | sizefactor(m_size){}
| ^
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/warp.hh:6,
from /home/thebittendonut/dev/OpenPano/src/stitch/warp.cc:6:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<double>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = double]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
In file included from /home/thebittendonut/dev/OpenPano/src/lib/imgproc.hh:8,
from /home/thebittendonut/dev/OpenPano/src/stitch/warp.cc:7:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh: In constructor ‘pano::Color::Color(const Vector<float>&)’:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh:18:19: warning: implicitly-declared ‘constexpr Vector<float>::Vector(const Vector<float>&)’ is deprecated [-Wdeprecated-copy]
18 | Vector<float>(v) {}
| ^
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/warp.hh:6,
from /home/thebittendonut/dev/OpenPano/src/stitch/warp.cc:6:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<float>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = float]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
[ 94%] Linking CXX static library libopenpano.a
[ 94%] Built target openpano
Scanning dependencies of target image-stitching
[ 97%] Building CXX object src/CMakeFiles/image-stitching.dir/main.cc.o
In file included from /home/thebittendonut/dev/OpenPano/src/lib/imgproc.hh:8,
from /home/thebittendonut/dev/OpenPano/src/main.cc:14:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh: In constructor ‘pano::Color::Color(const Vector<float>&)’:
/home/thebittendonut/dev/OpenPano/src/lib/color.hh:18:19: warning: implicitly-declared ‘constexpr Vector<float>::Vector(const Vector<float>&)’ is deprecated [-Wdeprecated-copy]
18 | Vector<float>(v) {}
| ^
In file included from /home/thebittendonut/dev/OpenPano/src/feature/extrema.hh:9,
from /home/thebittendonut/dev/OpenPano/src/main.cc:8:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<float>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = float]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
In file included from /home/thebittendonut/dev/OpenPano/src/stitch/match_info.hh:9,
from /home/thebittendonut/dev/OpenPano/src/stitch/imageref.hh:9,
from /home/thebittendonut/dev/OpenPano/src/stitch/stitcherbase.hh:10,
from /home/thebittendonut/dev/OpenPano/src/stitch/cylstitcher.hh:6,
from /home/thebittendonut/dev/OpenPano/src/main.cc:18:
/home/thebittendonut/dev/OpenPano/src/stitch/homography.hh: In member function ‘Vec pano::Homography::trans(const Vec&) const’:
/home/thebittendonut/dev/OpenPano/src/stitch/homography.hh:57:11: warning: implicitly-declared ‘constexpr Vector<double>::Vector(const Vector<double>&)’ is deprecated [-Wdeprecated-copy]
57 | return ret;
| ^~~
In file included from /home/thebittendonut/dev/OpenPano/src/feature/extrema.hh:9,
from /home/thebittendonut/dev/OpenPano/src/main.cc:8:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<double>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = double]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
In file included from /home/thebittendonut/dev/OpenPano/src/main.cc:22:
/home/thebittendonut/dev/OpenPano/src/stitch/warp.hh: In constructor ‘pano::CylinderProject::CylinderProject(int, const Vec&, int)’:
/home/thebittendonut/dev/OpenPano/src/stitch/warp.hh:22:21: warning: implicitly-declared ‘constexpr Vector<double>::Vector(const Vector<double>&)’ is deprecated [-Wdeprecated-copy]
22 | sizefactor(m_size){}
| ^
In file included from /home/thebittendonut/dev/OpenPano/src/feature/extrema.hh:9,
from /home/thebittendonut/dev/OpenPano/src/main.cc:8:
/home/thebittendonut/dev/OpenPano/src/lib/geometry.hh:70:11: note: because ‘Vector<double>’ has user-provided ‘Vector<T>& Vector<T>::operator=(const Vector<T>&) [with T = double]’
70 | Vector& operator = (const Vector& v)
| ^~~~~~~~
[100%] Linking CXX executable image-stitching
[100%] Built target image-stitching
When compiling the project using
make
with gcc 9.3.0 under Ubuntu 20.4 LTS the log below appears.The log suggests that some problems exists with a constructor method and a
memcpy
. The code was modified in order to overcome with these warnings.