Skip to content
Snippets Groups Projects

COMP: Remove RemoteSensingRegion assignment operator

Merged Laurențiu Nicola requested to merge remotesensingregion-ctors into develop

Summary

The default copy and move constructors and assignment operators are fine, there's no need to implement them manually.

Rationale

Spotted on Debian Testing with GCC 9.2.1:

In file included from /otb/Modules/Core/VectorDataBase/include/otbPolyLineParametricPathWithValue.h:34,
                 from /otb/Modules/Core/VectorDataBase/include/otbPolygon.h:24,
                 from /otb/Modules/Core/LabelMap/include/otbAttributesMapLabelObject.h:33,
                 from /otb/Modules/Core/LabelMap/test/otbLabelObjectMapVectorizer.cxx:24:
/otb/Modules/Core/ImageBase/include/otbRemoteSensingRegion.h:118:8: note: because 'otb::RemoteSensingRegion<double>' has user-provided 'void otb::RemoteSensingRegion<TType>::operator=(const Self&) [with TType = double; otb::RemoteSensingRegion<TType>::Self = otb::RemoteSensingRegion<double>]'
  118 |   void operator=(const Self& region)
      |        ^~~~~~~~

Copyright

The copyright owner is Laurențiu Nicola (CS ROMANIA) and has signed the ORFEO ToolBox Contributor License Agreement.


Check before merging:

  • All discussions are resolved
  • At least 2 :thumbsup: votes from core developers, no :thumbsdown: vote.
  • The feature branch is (reasonably) up-to-date with the base branch
  • Dashboard is green
  • Copyright owner has signed the ORFEO ToolBox Contributor License Agreement
  • Optionally, run git diff develop... -U0 --no-color | clang-format-diff.py -p1 -i on latest changes and commit
Edited by Laurențiu Nicola

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • added 1 commit

    • 25c44cf7 - COMP: Implement copy ctor for RemoteSensingRegion

    Compare with previous version

  • Laurențiu Nicola resolved all threads

    resolved all threads

  • added 1 commit

    • 629cdfd2 - COMP: Remove RemoteSensingRegion assignment op

    Compare with previous version

  • Laurențiu Nicola changed title from COMP: Implement copy ctor for RemoteSensingRegion to COMP: Remove RemoteSensingRegion assignment operator

    changed title from COMP: Implement copy ctor for RemoteSensingRegion to COMP: Remove RemoteSensingRegion assignment operator

  • Laurențiu Nicola changed the description

    changed the description

  • Cédric Traizet mentioned in merge request !682 (closed)

    mentioned in merge request !682 (closed)

  • Cédric Traizet changed milestone to %7.1.0

    changed milestone to %7.1.0

  • Do we have a build with GCC 9.2.1 on the CI ? And I don't understand why it fails on our Debian build..

  • It fails because it's not rebased over the MR that removed the GDALDestroy call.

  • it fails on debian because this branch does not include !677 (merged)

    I don't think we use gcc 9 on CI, as most builds are using clang

    On debian the CI uses gcc 8, but we could use gcc 9.

  • I used the compiler in the official Debian Testing Docker image. I haven't yet tried the OTB images.

  • I remember why we are using gcc 8 and not 9 (well git helped ^^). In ITK there is list of supported compiler defined in this header, and gcc 9 is not supported in ITK v4.13.2. It is possible to patch the file (and it is fixed in the branch release-4.13 of ITK), but in CI we have to use gcc 8.

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading