Uses Reference if compiler has no port
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@48 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
0b9d261d9b
commit
ad7e89ad22
31 changed files with 509 additions and 470 deletions
|
@ -454,8 +454,12 @@ namespace Loki
|
|||
static no check(...);
|
||||
|
||||
public:
|
||||
// VC7 fail NPS_HierarchyGenerators.h if this one is enum
|
||||
static const unsigned int type_id = sizeof(check( Type2Type<T>() ));
|
||||
#if (_MSC_VER >= 1300)
|
||||
// VC7 fail NPS_HierarchyGenerators.h if this one is enum
|
||||
static const unsigned int type_id = sizeof(check( Type2Type<T>() ));
|
||||
#else
|
||||
enum { type_id = sizeof(check( Type2Type<T>() )) };
|
||||
#endif
|
||||
|
||||
enum { value = type_id != sizeof(no) };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue