execution trace use std aligned storage

release/4.3a0
kartik arcot 2023-01-23 10:36:16 -08:00 committed by Frank Dellaert
parent 111d911377
commit 9929649092
1 changed files with 3 additions and 3 deletions

View File

@ -22,11 +22,11 @@
#include <gtsam/inference/Key.h>
#include <gtsam/base/Manifold.h>
#include <boost/type_traits/aligned_storage.hpp>
#include <Eigen/Core>
#include <iostream>
#include <optional>
#include <type_traits>
namespace gtsam {
namespace internal {
@ -37,7 +37,7 @@ template<int T> struct CallRecord;
/// It enforces the proper alignment in a portable way.
/// Provide a traceSize() sized array of this type to traceExecution as traceStorage.
static const unsigned TraceAlignment = 32;
typedef boost::aligned_storage<1, TraceAlignment>::type ExecutionTraceStorage;
typedef std::aligned_storage<1, TraceAlignment>::type ExecutionTraceStorage;
template<bool UseBlock, typename Derived>
struct UseBlockIf {