2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 21:45:37 +00:00

[#1852] default ParkingInfo constructor sets refcount_ to 0

This commit is contained in:
Razvan Becheriu
2021-05-21 12:54:34 +03:00
committed by Tomek Mrugalski
parent 7ae26127a6
commit d2ce8d63a3

View File

@@ -209,14 +209,19 @@ public:
/// @brief Holds information about parked object.
struct ParkingInfo {
boost::any parked_object_; ///< parked object
std::function<void()> unpark_callback_; ///< pointer to the callback
int refcount_; ///< current reference count
/// @brief The parked object.
boost::any parked_object_;
/// @brief The pointer to callback.
std::function<void()> unpark_callback_;
/// @brief The current reference count.
int refcount_;
/// @brief Constructor.
///
/// Default constructor.
ParkingInfo() {};
ParkingInfo() : refcount_(0) {};
/// @brief Constructor.
///