r198429 - We haven't cared about VS 2005 in a long time, and VS 2003 in even longer.

Aaron Ballman aaron at aaronballman.com
Fri Jan 3 10:10:26 PST 2014


Author: aaronballman
Date: Fri Jan  3 12:10:25 2014
New Revision: 198429

URL: http://llvm.org/viewvc/llvm-project?rev=198429&view=rev
Log:
We haven't cared about VS 2005 in a long time, and VS 2003 in even longer.

Modified:
    cfe/trunk/include/clang/AST/ASTVector.h

Modified: cfe/trunk/include/clang/AST/ASTVector.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ASTVector.h?rev=198429&r1=198428&r2=198429&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/ASTVector.h (original)
+++ cfe/trunk/include/clang/AST/ASTVector.h Fri Jan  3 12:10:25 2014
@@ -26,30 +26,6 @@
 #include <cstring>
 #include <memory>
 
-#ifdef _MSC_VER
-namespace std {
-#if _MSC_VER <= 1310
-  // Work around flawed VC++ implementation of std::uninitialized_copy.  Define
-  // additional overloads so that elements with pointer types are recognized as
-  // scalars and not objects, causing bizarre type conversion errors.
-  template<class T1, class T2>
-  inline _Scalar_ptr_iterator_tag _Ptr_cat(T1 **, T2 **) {
-    _Scalar_ptr_iterator_tag _Cat;
-    return _Cat;
-  }
-
-  template<class T1, class T2>
-  inline _Scalar_ptr_iterator_tag _Ptr_cat(T1* const *, T2 **) {
-    _Scalar_ptr_iterator_tag _Cat;
-    return _Cat;
-  }
-#else
-  // FIXME: It is not clear if the problem is fixed in VS 2005.  What is clear
-  // is that the above hack won't work if it wasn't fixed.
-#endif
-}
-#endif
-
 namespace clang {
   class ASTContext;
 





More information about the cfe-commits mailing list