Skip to content

Commit

Permalink
Explicitly defining default copy and move constructors and operators …
Browse files Browse the repository at this point in the history
…for consensus internals.
  • Loading branch information
gpdaniels committed Jan 2, 2024
1 parent ae82388 commit a9458d6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/vision/consensus/estimator
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ namespace gtl {
protected:
virtual ~estimator() = default;
estimator() = default;
estimator(const estimator&) = default;
estimator(estimator&&) = default;
estimator& operator=(const estimator&) = default;
estimator& operator=(estimator&&) = default;

public:
virtual size_t generate_models(const data_type* const __restrict data, size_t data_size, model_type* const __restrict models) = 0;
Expand Down
4 changes: 4 additions & 0 deletions source/vision/consensus/evaluator
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ namespace gtl {
protected:
virtual ~evaluator() = default;
evaluator() = default;
evaluator(const evaluator&) = default;
evaluator(evaluator&&) = default;
evaluator& operator=(const evaluator&) = default;
evaluator& operator=(evaluator&&) = default;

public:
virtual float evaluate(
Expand Down
4 changes: 4 additions & 0 deletions source/vision/consensus/sampler
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ namespace gtl {
protected:
virtual ~sampler() = default;
sampler() = default;
sampler(const sampler&) = default;
sampler(sampler&&) = default;
sampler& operator=(const sampler&) = default;
sampler& operator=(sampler&&) = default;

virtual void prepare(const size_t data_size) = 0;

Expand Down

0 comments on commit a9458d6

Please sign in to comment.