Просмотр исходного кода

BUG: For some reason the non-template allocator test compiles on VS6 even though its allocator is a template. Adding ::size_type to be sure it accesses a member of the allocator.

Brad King 21 лет назад
Родитель
Сommit
eebd1fb2dc
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Source/kwsys/kwsysPlatformCxxTests.cxx

+ 1 - 1
Source/kwsys/kwsysPlatformCxxTests.cxx

@@ -151,7 +151,7 @@ int main() { return 0; }
 
 #ifdef TEST_KWSYS_STL_HAS_ALLOCATOR_NONTEMPLATE
 #include <memory>
-void f(kwsys_stl::allocator const&) {}
+void f(kwsys_stl::allocator::size_type const&) {}
 int main() { return 0; }
 #endif