just make sure it can compile and run. Will come back to fix it

release/4.3a0
lvzhaoyang 2014-12-06 23:13:09 -05:00
parent e49c9fa100
commit 87ae297dad
1 changed files with 14 additions and 14 deletions

View File

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