mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-28 23:04:18 +08:00
update has_ReturnType to be more consistent with other has_ helpers
This commit is contained in:
parent
fd7db52f9b
commit
aae19c70ac
@ -433,10 +433,10 @@ struct meta_no { char a[2]; };
|
||||
template <typename T>
|
||||
struct has_ReturnType
|
||||
{
|
||||
template <typename C> static meta_yes testFunctor(typename C::ReturnType const *);
|
||||
template <typename C> static meta_no testFunctor(...);
|
||||
template <typename C> static meta_yes testFunctor(C const *, typename C::ReturnType const * = 0);
|
||||
template <typename C> static meta_no testFunctor(...);
|
||||
|
||||
enum { value = sizeof(testFunctor<T>(0)) == sizeof(meta_yes) };
|
||||
enum { value = sizeof(testFunctor<T>(static_cast<T*>(0))) == sizeof(meta_yes) };
|
||||
};
|
||||
|
||||
template<typename T> const T* return_ptr();
|
||||
|
Loading…
x
Reference in New Issue
Block a user