vc7.1 fixes

This commit is contained in:
cxgeorge 2002-11-22 03:58:55 +00:00
parent d99b1ff360
commit bda142a078
3 changed files with 12 additions and 5 deletions

View File

@ -44,7 +44,7 @@
// ensure pdbs are copied to install dir
#define build_pdbs yes
#elif $[eq $[USE_COMPILER], MSVC7]
#elif $[or $[eq $[USE_COMPILER], MSVC7], $[eq $[USE_COMPILER], MSVC7_1]]
#define COMPILER cl
#define LINKER link

View File

@ -49,8 +49,13 @@
#pragma warning (disable : 4244)
#if _MSC_VER >= 1300
#define USING_MSVC7
#if _MSC_VER >= 1310
#define USING_MSVC7_1
//#pragma message("VC 7.1")
#else
//#pragma message("VC 7.0")
#endif
#define USING_MSVC7
#else
// #pragma message("VC 6.0")
#endif

View File

@ -72,15 +72,17 @@ deallocate(void *p, allocator<Type>::size_type) {
#elif MODERN_STYLE_ALLOCATOR
template<class Type>
INLINE pallocator<Type>::
pallocator() throw() {
}
template<class Type>
INLINE pallocator<Type>::pointer pallocator<Type>::
allocate(pallocator<Type>::size_type n, allocator<void>::const_pointer) {
return (pallocator<Type>::pointer)(*global_operator_new)(n * sizeof(Type));
INLINE typename pallocator<Type>::pointer pallocator<Type>::
allocate(typename pallocator<Type>::size_type n, typename allocator<void>::const_pointer) {
return (typename pallocator<Type>::pointer)(*global_operator_new)(n * sizeof(Type));
}
template<class Type>