diff --git a/wrap/matlab.h b/wrap/matlab.h index f2080fab3..1639876cc 100644 --- a/wrap/matlab.h +++ b/wrap/matlab.h @@ -426,19 +426,19 @@ boost::shared_ptr unwrap_shared_ptr(const mxArray* obj, const string& pro return *spp; } -// throw an error if unwrap_shared_ptr is attempted for an Eigen Vector -template <> -Vector unwrap_shared_ptr(const mxArray* obj, const string& propertyName) { - bool unwrap_shared_ptr_Vector_attempted = false; - BOOST_STATIC_ASSERT(unwrap_shared_ptr_Vector_attempted, "Vector cannot be unwrapped as a shared pointer"); - return Vector(); -} +//// throw an error if unwrap_shared_ptr is attempted for an Eigen Vector +//template <> +//Vector unwrap_shared_ptr(const mxArray* obj, const string& propertyName) { +// bool unwrap_shared_ptr_Vector_attempted = false; +// BOOST_STATIC_ASSERT(unwrap_shared_ptr_Vector_attempted, "Vector cannot be unwrapped as a shared pointer"); +// return Vector(); +//} -// throw an error if unwrap_shared_ptr is attempted for an Eigen Matrix -template <> -Matrix unwrap_shared_ptr(const mxArray* obj, const string& propertyName) { - bool unwrap_shared_ptr_Matrix_attempted = false; - BOOST_STATIC_ASSERT(unwrap_shared_ptr_Matrix_attempted, "Matrix cannot be unwrapped as a shared pointer"); - return Matrix(); -} +//// throw an error if unwrap_shared_ptr is attempted for an Eigen Matrix +//template <> +//Matrix unwrap_shared_ptr(const mxArray* obj, const string& propertyName) { +// bool unwrap_shared_ptr_Matrix_attempted = false; +// BOOST_STATIC_ASSERT(unwrap_shared_ptr_Matrix_attempted, "Matrix cannot be unwrapped as a shared pointer"); +// return Matrix(); +//}