Attempting to fix a build issue with MSVC 2012; NFC
authorAaron Ballman <aaron@aaronballman.com>
Thu, 29 Jan 2015 16:02:06 +0000 (16:02 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 29 Jan 2015 16:02:06 +0000 (16:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227456 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-pdbdump/COMExtras.h

index 913d179ce413a1d0de461811a88b705a4da597f7..f77b49322961354544eaef65cdaab8954872c7f6 100644 (file)
@@ -20,7 +20,7 @@ namespace llvm {
 
 template <typename F> struct function_traits;
 
-#if LLVM_HAS_VARIADIC_TEMPLATES
+#if 0 && LLVM_HAS_VARIADIC_TEMPLATES
 template <typename R, typename... Args>
 struct function_traits<R (*)(Args...)> : public function_traits<R(Args...)> {};
 
@@ -37,13 +37,15 @@ struct function_traits<R (__stdcall C::*)(Args...)> {
 // exclusively.
 template <typename C, typename R, typename A1, typename A2, typename A3>
 struct function_traits<R (__stdcall C::*)(A1, A2, A3)> {
-  using args_tuple = std::tuple<A1, A2, A3>;
+  //using args_tuple = std::tuple<A1, A2, A3>;
+  typedef std::tuple<A1, A2, A3> args_tuple;
 };
 
 template <typename C, typename R, typename A1, typename A2, typename A3,
           typename A4, typename A5>
 struct function_traits<R (__stdcall C::*)(A1, A2, A3, A4, A5)> {
-  using args_tuple = std::tuple<A1, A2, A3, A4, A5>;
+  //using args_tuple = std::tuple<A1, A2, A3, A4, A5>;
+  typedef std::tuple<A1, A2, A3, A4, A5> args_tuple;
 };
 #endif