the easiest way is to write a trait class
template <class T>
struct grad_type {};
template <>
struct grad_type<Scalar> { typedef Vector type; };
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: superbonzo Search: Search took 1.48 seconds.
Results 1 to 2 of 2
|
Click Here to Expand Forum to Full Width |