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.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@150581 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b0bfd9bdd6
commit
e5285fd6b6
@ -1144,7 +1144,7 @@ private:
|
|||||||
static _Up __u();
|
static _Up __u();
|
||||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||||
public:
|
public:
|
||||||
typedef decltype(true ? __t() : __u()) type;
|
typedef typename remove_reference<decltype(true ? __t() : __u())>::type type;
|
||||||
};
|
};
|
||||||
|
|
||||||
#else // _LIBCPP_HAS_NO_VARIADICS
|
#else // _LIBCPP_HAS_NO_VARIADICS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user