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:
committed by
Tomek Mrugalski
parent
7ae26127a6
commit
d2ce8d63a3
@@ -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.
|
||||
///
|
||||
|
Reference in New Issue
Block a user