[libcxx-commits] [libcxx] a59c1a2 - [libc++] LWG3266: delete the to_chars(bool) overload.

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Fri Oct 15 08:53:13 PDT 2021


Author: Konstantin Varlamov
Date: 2021-10-15T17:52:58+02:00
New Revision: a59c1a2138a5d6c0b9cf74fa0fa8da0e6a2d3a1c

URL: https://github.com/llvm/llvm-project/commit/a59c1a2138a5d6c0b9cf74fa0fa8da0e6a2d3a1c
DIFF: https://github.com/llvm/llvm-project/commit/a59c1a2138a5d6c0b9cf74fa0fa8da0e6a2d3a1c.diff

LOG: [libc++] LWG3266: delete the to_chars(bool) overload.

This PR only updates the synopsis in `<charconv>` -- the current
implementation already [deletes](https://github.com/llvm/llvm-project/blob/e9e6266c704df43e2c52308e1b653dccefa89e04/libcxx/include/charconv#L108)
the overload and has a [test](https://github.com/llvm/llvm-project/blob/main/libcxx/test/std/utilities/charconv/charconv.to.chars/integral.bool.fail.cpp)
for it (and this has been the case from the first [commit](https://reviews.llvm.org/D41458)
where `<charconv>` was added).

Reviewed By: #libc, Mordante

Differential Revision: https://reviews.llvm.org/D111845

Added: 
    

Modified: 
    libcxx/docs/Status/Cxx20Issues.csv
    libcxx/include/charconv

Removed: 
    


################################################################################
diff  --git a/libcxx/docs/Status/Cxx20Issues.csv b/libcxx/docs/Status/Cxx20Issues.csv
index 9ef284ab5ebeb..264261c084ebf 100644
--- a/libcxx/docs/Status/Cxx20Issues.csv
+++ b/libcxx/docs/Status/Cxx20Issues.csv
@@ -179,7 +179,7 @@
 "`3256 <https://wg21.link/LWG3256>`__","Feature testing macro for ``constexpr``\  algorithms","Belfast","|Complete|","13.0"
 "`3273 <https://wg21.link/LWG3273>`__","Specify ``weekday_indexed``\  to range of ``[0, 7]``\ ","Belfast","",""
 "`3070 <https://wg21.link/LWG3070>`__","``path::lexically_relative``\  causes surprising results if a filename can also be a  *root-name*","Belfast","",""
-"`3266 <https://wg21.link/LWG3266>`__","``to_chars(bool)``\  should be deleted","Belfast","",""
+"`3266 <https://wg21.link/LWG3266>`__","``to_chars(bool)``\  should be deleted","Belfast","|Complete|","14.0"
 "`3272 <https://wg21.link/LWG3272>`__","``%I%p``\  should parse/format ``duration``\  since midnight","Belfast","","","|chrono| |format|"
 "`3259 <https://wg21.link/LWG3259>`__","The definition of *constexpr iterators* should be adjusted","Belfast","",""
 "`3103 <https://wg21.link/LWG3103>`__","Errors in taking subview of ``span``\  should be ill-formed where possible","Belfast","",""

diff  --git a/libcxx/include/charconv b/libcxx/include/charconv
index 2fdab7f007c82..447cef97a2101 100644
--- a/libcxx/include/charconv
+++ b/libcxx/include/charconv
@@ -31,6 +31,8 @@ namespace std {
 
   to_chars_result to_chars(char* first, char* last, see below value,
                            int base = 10);
+  to_chars_result to_chars(char* first, char* last, bool value,
+                           int base = 10) = delete;
 
   to_chars_result to_chars(char* first, char* last, float value);
   to_chars_result to_chars(char* first, char* last, double value);


        


More information about the libcxx-commits mailing list