From 425e44d1925c02464dbf496e73629b09f295c560 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Wed, 15 Feb 2012 15:08:30 +0000 Subject: [PATCH] Remove reference from common_type definition. It looks like a recent clang decltype implementation got fixed/improved and exposed this. Fixes http://llvm.org/bugs/show_bug.cgi?id=12007. llvm-svn: 150581 --- libcxx/include/type_traits | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcxx/include/type_traits b/libcxx/include/type_traits index 5911c0390144..2bf520a3fd8c 100644 --- a/libcxx/include/type_traits +++ b/libcxx/include/type_traits @@ -1144,7 +1144,7 @@ private: static _Up __u(); #endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES public: - typedef decltype(true ? __t() : __u()) type; + typedef typename remove_reference::type type; }; #else // _LIBCPP_HAS_NO_VARIADICS