24#include <boost/make_shared.hpp>
30 template<
bool B,
class T =
void>
56 template<
typename T,
typename ... Args>
58 return boost::allocate_shared<T>(Eigen::aligned_allocator<T>(), std::forward<Args>(args)...);
62 template<
typename T,
typename ... Args>
64 return boost::make_shared<T>(std::forward<Args>(args)...);
Typedefs for easier changing of types.
Global functions in a separate testing namespace.
Definition: chartTesting.h:28
typename std::enable_if< B, T >::type enable_if_t
An shorthand alias for accessing the ::type inside std::enable_if that can be used in a template dire...
Definition: make_shared.h:31
gtsam::enable_if_t< needs_eigen_aligned_allocator< T >::value, boost::shared_ptr< T > > make_shared(Args &&... args)
Add our own make_shared as a layer of wrapping on boost::make_shared This solves the problem with the...
Definition: make_shared.h:57