[libc++][nfc] Improve standard conformance.
authorMark de Wever <koraq@xs4all.nl>
Tue, 16 Nov 2021 15:04:29 +0000 (16:04 +0100)
committerMark de Wever <koraq@xs4all.nl>
Tue, 16 Nov 2021 16:30:35 +0000 (17:30 +0100)
The return type of the deleted functions doesn't match the synopsis in
the standard.

Reviewed By: #libc, ldionne

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

libcxx/include/charconv

index 447cef9..c0e43e5 100644 (file)
@@ -107,8 +107,8 @@ _LIBCPP_AVAILABILITY_TO_CHARS _LIBCPP_FUNC_VIS char* __u32toa(uint32_t __value,
 
 #ifndef _LIBCPP_CXX03_LANG
 
-void to_chars(char*, char*, bool, int = 10) = delete;
-void from_chars(const char*, const char*, bool, int = 10) = delete;
+to_chars_result to_chars(char*, char*, bool, int = 10) = delete;
+from_chars_result from_chars(const char*, const char*, bool, int = 10) = delete;
 
 namespace __itoa
 {