diff options
author | Arthur O'Dwyer <arthur.j.odwyer@gmail.com> | 2021-06-15 12:57:54 -0400 |
---|---|---|
committer | Arthur O'Dwyer <arthur.j.odwyer@gmail.com> | 2021-06-22 13:35:59 -0400 |
commit | 317e92a3e82f88f111e04132195d9daa6b97f1ab (patch) | |
tree | 3c95760cc0ab843471baff351d218edd56d9ec83 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 2e120920acd2241658f87a995c3a685603e992f3 (diff) | |
download | llvm-317e92a3e82f88f111e04132195d9daa6b97f1ab.zip llvm-317e92a3e82f88f111e04132195d9daa6b97f1ab.tar.gz llvm-317e92a3e82f88f111e04132195d9daa6b97f1ab.tar.bz2 |
[libc++] Enable `explicit` conversion operators, even in C++03 mode.
C++03 didn't support `explicit` conversion operators;
but Clang's C++03 mode does, as an extension, so we can use it.
This lets us make the conversion explicit in `std::function` (even in '03),
and remove some silly metaprogramming in `std::basic_ios`.
Drive-by improvements to the tests for these operators, in addition
to making sure all these tests also run in `c++03` mode.
Differential Revision: https://reviews.llvm.org/D104682
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions