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.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@150599 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1165,7 +1165,7 @@ private:
|
|||||||
static _Up&& __u();
|
static _Up&& __u();
|
||||||
static bool __f();
|
static bool __f();
|
||||||
public:
|
public:
|
||||||
typedef decltype(__f() ? __t() : __u()) type;
|
typedef typename remove_reference<decltype(__f() ? __t() : __u())>::type type;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class _Tp, class _Up, class ..._Vp>
|
template <class _Tp, class _Up, class ..._Vp>
|
||||||
|
|||||||
Reference in New Issue
Block a user