@tchaikov found:
libc++ still does not support "Splicing Maps and Sets",
see https://libcxx.llvm.org/cxx1z_status.html ,
search for "p0083r3" .
Make this case the more explicit coded.
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
*
*/
+#include "acconfig.h"
#include "mds/CInode.h"
#include "mds/CDir.h"
#include "mds/MDSRank.h"
mds->objecter->mutate(oid, oloc, op, snapc, ceph::real_clock::now(), 0,
gather.new_sub());
+#ifdef HAVE_STDLIB_MAP_SPLICING
ctl.journaled_update.merge(ctl.to_update);
ctl.journaled_remove.merge(ctl.to_remove);
+#else
+ ctl.journaled_update.insert(ctl.to_update.begin(), ctl.to_update.end());
+ ctl.journaled_remove.insert(ctl.to_remove.begin(), ctl.to_remove.end());
+#endif
ctl.to_update.clear();
ctl.to_remove.clear();
};