24 #include <boost/make_shared.hpp> 26 #include <type_traits> 30 template<
bool B,
class T =
void>
56 template<
typename T,
typename ... Args>
62 template<
typename T,
typename ... Args>
64 return boost::make_shared<T>(std::forward<Args>(
args)...);
gtsam::enable_if_t< needs_eigen_aligned_allocator< T >::value, boost::shared_ptr< T > > make_shared(Args &&...args)
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 direct...
Typedefs for easier changing of types.
STL compatible allocator to use with types requiring a non standrad alignment.
Eigen::Triplet< double > T