Skip to content

Commit 82a129b

Browse files
committed
[src] Explicitly define default copy/move construtors/operators in DetectionOutput
Ensure they are used across C++ standard evolution
1 parent dd3c4f2 commit 82a129b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/CollisionAlgorithm/DataDetectionOutput.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,17 @@ class DetectionOutput {
1313
public:
1414
typedef std::pair<typename FIRST::SPtr,typename SECOND::SPtr> PairDetection;
1515

16+
DetectionOutput() = default;
17+
~DetectionOutput() = default;
18+
19+
// Copy
20+
DetectionOutput(const DetectionOutput&) = default;
21+
DetectionOutput& operator=(const DetectionOutput&) = default;
22+
23+
// Move
24+
DetectionOutput(DetectionOutput&&) noexcept = default;
25+
DetectionOutput& operator=(DetectionOutput&&) noexcept = default;
26+
1627
friend std::ostream& operator<<(std::ostream& os, const DetectionOutput& t) {
1728
os << t.m_output.size() << ":" ;
1829
for (unsigned i=0;i<t.m_output.size();i++) {

0 commit comments

Comments
 (0)