diff options
author | Alaa Eddine Elamri <alaeddine.elamri@bareos.com> | 2022-10-28 20:40:57 +0300 |
---|---|---|
committer | Andreas Rogge <andreas.rogge@bareos.com> | 2022-11-07 19:16:30 +0300 |
commit | b1c6f2cecd92a881e7929631527a766130565397 (patch) | |
tree | 0b89fd33c6c8f3515f92c3437281c7c55c248bcc | |
parent | 608f067fa68047cdb1cbe9cb9dcf5741bcb43f6b (diff) |
vol_mgr: replace construct_at with placement new
Certain compilers we use in our containers seem to not support std::construct_at
-rw-r--r-- | core/src/stored/vol_mgr.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/stored/vol_mgr.cc b/core/src/stored/vol_mgr.cc index 7cc1b3b93..b4eff74cc 100644 --- a/core/src/stored/vol_mgr.cc +++ b/core/src/stored/vol_mgr.cc @@ -262,7 +262,7 @@ static VolumeReservationItem* new_vol_item(DeviceControlRecord* dcr, VolumeReservationItem* vol; vol = (VolumeReservationItem*)malloc(sizeof(VolumeReservationItem)); - std::construct_at(vol); + vol = new (vol) VolumeReservationItem(); vol->vol_name = strdup(VolumeName); if (dcr) { |