Clean-up: lttng: utils: missing special member functions
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 22 Mar 2024 19:35:29 +0000 (15:35 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 22 Mar 2024 19:36:00 +0000 (15:36 -0400)
commit77c8b540e0389c630764b6298ec71f81ed03c72d
tree477418a54620ddfd78dd9f96e7af6a3f26946f1c
parent13d03b1e7e910dc0197275764efb6caeed6642aa
Clean-up: lttng: utils: missing special member functions

clang-tidy warns:
  warning: class 'session_list' defines a move constructor but does not define a destructor, a copy constructor, a copy assignment operator or a move assignment operator [cppcoreguidelines-special-member-functions]

This warning related to the "Rule of Five":

If a class requires a custom destructor, copy constructor, or copy
assignment operator due to manual resource management, it likely needs
to explicitly define all five (including move constructor and move
assignment operator) to correctly manage the resources across all types
of object copying and moving scenarios. This rule helps prevent resource
leaks, double frees, and other common issues related to resource
management.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I970cd1ab905eb877241f7e559b47349b9371f261
src/bin/lttng/utils.hpp
This page took 0.024999 seconds and 4 git commands to generate.