Skip to content

Commit

Permalink
fixing Solaris build (#434)
Browse files Browse the repository at this point in the history
Signed-off-by: dorjesinpo <[email protected]>
  • Loading branch information
dorjesinpo authored Oct 2, 2024
1 parent c55fcdc commit 9b9785e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/groups/mqb/mqbblp/mqbblp_pushstream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,16 @@ PushStream::PushStream(
bslma::Allocator* allocator)
: d_stream(allocator)
, d_apps(allocator)
, d_pushElementsPool_sp(pushElementsPool.value_or(bsl::nullptr_t()),
noOpDeleter,
allocator)
, d_pushElementsPool_sp()
{
allocator = bslma::Default::allocator(allocator);

if (pushElementsPool.has_value()) {
d_pushElementsPool_sp.reset(pushElementsPool.value(),
noOpDeleter,
allocator);
}

if (!d_pushElementsPool_sp) {
d_pushElementsPool_sp.load(
new (*allocator) bdlma::ConcurrentPool(sizeof(Element), allocator),
Expand Down

0 comments on commit 9b9785e

Please sign in to comment.