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
This commit is contained in:
Howard Hinnant 2012-02-15 15:08:30 +00:00
parent f571cde869
commit 425e44d192
1 changed files with 1 additions and 1 deletions

View File

@ -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<decltype(true ? __t() : __u())>::type type;
};
#else // _LIBCPP_HAS_NO_VARIADICS