include/o3tl/intcmp.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c58a51e5f1972eb2f3220d3158801b0c7601f407
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Wed Jun 1 12:33:17 2022 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Wed Jun 1 14:48:39 2022 +0200

    Fix comment
    
    For one, the functions are already available in C++20.  For another, our
    fallback implementation is only an approximation, as it doesn't enforce the
    requirement that the involved template types "are standard integer types or
    extended integer types" (but which is at least checked in --with-latest-c++
    builds against standard libraries that already provide those C++20 
functions).
    
    Change-Id: I91208c185f2db681cf25899d3cd9a9e2912d32a0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135232
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/include/o3tl/intcmp.hxx b/include/o3tl/intcmp.hxx
index 2af537b1dead..fda9d68f5ff0 100644
--- a/include/o3tl/intcmp.hxx
+++ b/include/o3tl/intcmp.hxx
@@ -18,7 +18,7 @@
 
 namespace o3tl
 {
-// An implementation of the C++23 integer comparison functions
+// An approximation of the C++20 integer comparison functions
 // (<https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p0586r2.html> 
"Safe integral
 // comparisons"):
 #if defined __cpp_lib_integer_comparison_functions

Reply via email to