Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bareos/bareos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlaa Eddine Elamri <alaeddine.elamri@bareos.com>2022-10-28 20:40:57 +0300
committerAndreas Rogge <andreas.rogge@bareos.com>2022-11-07 19:16:30 +0300
commitb1c6f2cecd92a881e7929631527a766130565397 (patch)
tree0b89fd33c6c8f3515f92c3437281c7c55c248bcc
parent608f067fa68047cdb1cbe9cb9dcf5741bcb43f6b (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.cc2
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) {