mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-30 07:44:10 +08:00
Fix compilation with MSVC 2012
This commit is contained in:
parent
ef54723dbe
commit
d6c8366d84
@ -386,7 +386,7 @@ template<typename T> const T& return_ref();
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
struct has_nullary_operator
|
struct has_nullary_operator
|
||||||
{
|
{
|
||||||
template <typename C> static meta_yes testFunctor(C const *,typename enable_if<(sizeof(return_ref<C>()())>0)>::type * = 0);
|
template <typename C> static meta_yes testFunctor(C const *,typename enable_if<(sizeof(return_ref<C>().operator()())>0)>::type * = 0);
|
||||||
static meta_no testFunctor(...);
|
static meta_no testFunctor(...);
|
||||||
|
|
||||||
enum { value = sizeof(testFunctor(static_cast<T*>(0))) == sizeof(meta_yes) };
|
enum { value = sizeof(testFunctor(static_cast<T*>(0))) == sizeof(meta_yes) };
|
||||||
@ -395,7 +395,7 @@ struct has_nullary_operator
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
struct has_unary_operator
|
struct has_unary_operator
|
||||||
{
|
{
|
||||||
template <typename C> static meta_yes testFunctor(C const *,typename enable_if<(sizeof(return_ref<C>()(Index(0)))>0)>::type * = 0);
|
template <typename C> static meta_yes testFunctor(C const *,typename enable_if<(sizeof(return_ref<C>().operator()(Index(0)))>0)>::type * = 0);
|
||||||
static meta_no testFunctor(...);
|
static meta_no testFunctor(...);
|
||||||
|
|
||||||
enum { value = sizeof(testFunctor(static_cast<T*>(0))) == sizeof(meta_yes) };
|
enum { value = sizeof(testFunctor(static_cast<T*>(0))) == sizeof(meta_yes) };
|
||||||
@ -404,7 +404,7 @@ struct has_unary_operator
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
struct has_binary_operator
|
struct has_binary_operator
|
||||||
{
|
{
|
||||||
template <typename C> static meta_yes testFunctor(C const *,typename enable_if<(sizeof(return_ref<C>()(Index(0),Index(0)))>0)>::type * = 0);
|
template <typename C> static meta_yes testFunctor(C const *,typename enable_if<(sizeof(return_ref<C>().operator()(Index(0),Index(0)))>0)>::type * = 0);
|
||||||
static meta_no testFunctor(...);
|
static meta_no testFunctor(...);
|
||||||
|
|
||||||
enum { value = sizeof(testFunctor(static_cast<T*>(0))) == sizeof(meta_yes) };
|
enum { value = sizeof(testFunctor(static_cast<T*>(0))) == sizeof(meta_yes) };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user