execution trace use std aligned storage
parent
111d911377
commit
9929649092
|
@ -22,11 +22,11 @@
|
||||||
#include <gtsam/inference/Key.h>
|
#include <gtsam/inference/Key.h>
|
||||||
#include <gtsam/base/Manifold.h>
|
#include <gtsam/base/Manifold.h>
|
||||||
|
|
||||||
#include <boost/type_traits/aligned_storage.hpp>
|
|
||||||
|
|
||||||
#include <Eigen/Core>
|
#include <Eigen/Core>
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
#include <type_traits>
|
||||||
|
|
||||||
namespace gtsam {
|
namespace gtsam {
|
||||||
namespace internal {
|
namespace internal {
|
||||||
|
@ -37,7 +37,7 @@ template<int T> struct CallRecord;
|
||||||
/// It enforces the proper alignment in a portable way.
|
/// It enforces the proper alignment in a portable way.
|
||||||
/// Provide a traceSize() sized array of this type to traceExecution as traceStorage.
|
/// Provide a traceSize() sized array of this type to traceExecution as traceStorage.
|
||||||
static const unsigned TraceAlignment = 32;
|
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>
|
template<bool UseBlock, typename Derived>
|
||||||
struct UseBlockIf {
|
struct UseBlockIf {
|
||||||
|
|
Loading…
Reference in New Issue