forward declare traits and moved MakeOptionalJacobian here...

release/4.3a0
dellaert 2015-05-04 10:11:02 -07:00
parent 3a99e74bb7
commit 9a0f973e71
1 changed files with 15 additions and 0 deletions

View File

@ -168,5 +168,20 @@ public:
Jacobian* operator->(){ return pointer_; }
};
// forward declate
template <typename T> struct traits;
/**
* @brief: meta-function to generate JacobianTA optional reference
* Used mainly by Expressions
* @param T return type
* @param A argument type
*/
template<class T, class A>
struct MakeOptionalJacobian {
typedef OptionalJacobian<traits<T>::dimension,
traits<A>::dimension> type;
};
} // namespace gtsam