From 87ae297dad5e1952d159b54f70aa5488c7ad0348 Mon Sep 17 00:00:00 2001 From: lvzhaoyang Date: Sat, 6 Dec 2014 23:13:09 -0500 Subject: [PATCH] just make sure it can compile and run. Will come back to fix it --- wrap/matlab.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) 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(); +//}