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:
tslettebo 2002-09-16 01:58:52 +00:00
parent 0b9d261d9b
commit ad7e89ad22
31 changed files with 509 additions and 470 deletions

View file

@ -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) };