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:
parent
e5285fd6b6
commit
d7a2ad6a99
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user