From 8f8e81917085ce6ebe5a8e40ad338f4f842a0c72 Mon Sep 17 00:00:00 2001 From: Andrea Iob Date: Mon, 17 Oct 2022 15:13:27 +0200 Subject: [PATCH] PABLO: explicitly cast bitset::reference to bool Fixes an error when compiling bitpit with libc++ (see issue #348). --- src/PABLO/ParaTree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PABLO/ParaTree.cpp b/src/PABLO/ParaTree.cpp index f36f2f097c..5fe5602d6b 100644 --- a/src/PABLO/ParaTree.cpp +++ b/src/PABLO/ParaTree.cpp @@ -5696,7 +5696,7 @@ namespace bitpit { for(std::size_t i = 0; i < nRankBorders; ++i){ const Octant &octant = m_octree.m_octants[rankBordersPerProc[i]]; sendBuffer << octant.getMarker(); - sendBuffer << octant.m_info[Octant::INFO_AUX]; + sendBuffer << static_cast(octant.m_info[Octant::INFO_AUX]); } }