CaseyCarter added a comment.

In https://reviews.llvm.org/D49118#1157438, @mclow.lists wrote:

> >   I've conservatively hidden everything behind _LIBCPP_STD_VER > 17, 
> > although it could be made available in C++11 mode with some edits.
>
> If we have a use for this in pre c++2a code, the libc++ convention would be 
> to implement `__common_reference` that works most everywhere, and then have 
> `common_reference` that only works > 17, but inherits from the ugly name.
>
> That might be difficult in this case, because users can extend 
> `common_reference`.


I was thinking more about implementing the new bullet for `common_type` 
unconditionally. Despite that it wouldn't quite conform in older modes, it 
would avoid introducing an obscure difference between 20-mode `common_type` and 
11-mode `common_type`. That said, I wouldn't do so in MSFTL so I assumed you 
wouldn't in libc++.


https://reviews.llvm.org/D49118



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to