Another stab at fixing http://llvm.org/bugs/show_bug.cgi?id=12007. I earlier missed that there are two common_type definitions and corrected only one of them.

llvm-svn: 150599
This commit is contained in:
Howard Hinnant 2012-02-15 18:08:09 +00:00
parent 0bc5132457
commit 2aa9a38b67
1 changed files with 1 additions and 1 deletions

View File

@ -1165,7 +1165,7 @@ private:
static _Up&& __u();
static bool __f();
public:
typedef decltype(__f() ? __t() : __u()) type;
typedef typename remove_reference<decltype(__f() ? __t() : __u())>::type type;
};
template <class _Tp, class _Up, class ..._Vp>