just make sure it can compile and run. Will come back to fix it
parent
e49c9fa100
commit
87ae297dad
|
@ -426,19 +426,19 @@ boost::shared_ptr<Class> 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<Vector>(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<Vector>(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<Matrix>(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<Matrix>(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();
|
||||
//}
|
||||
|
||||
|
|
Loading…
Reference in New Issue