mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user