bt2::internal::BorrowedObj: use default copy operations explicitly
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 19 May 2022 16:11:40 +0000 (12:11 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 11 Sep 2023 15:24:02 +0000 (11:24 -0400)
commit5b2d3ebb80029d9f23862ca8e0f1863287d7d04e
tree3e7689253ba118cdfd262e0d2329d21228f5ce14
parent96643d2848b734bec12c4d37f6f2508f15fd1077
bt2::internal::BorrowedObj: use default copy operations explicitly

What was called the generic copy constructor and assignment operator
are in fact constructor templates, not true copy operations.

This is because C++ requires that a copy constructor/assignment operator
be a "non-template non-static member function".

This patch is not a fix because the generated default copy operations
were fine (just copy the underlying libbabeltrace2 pointer). Just use
the default ones explicitly and fix the comments so that we know what's
going on.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I4b4f19416a78ca05eaf3fa92f85f9637b2be2c0a
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8090
Reviewed-on: https://review.lttng.org/c/babeltrace/+/10801
Tested-by: jenkins <jenkins@lttng.org>
src/cpp-common/bt2/internal/borrowed-obj.hpp
This page took 0.023998 seconds and 4 git commands to generate.