diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-10-11 13:27:51 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-10-11 21:53:13 +0200 |
commit | 6d1b241ab7b2edf3f3eef26f4cc514c22849caf5 (patch) | |
tree | 3c8c3b278b5fe084434b0bee682575d4a41c0adb /configure.ac | |
parent | 432e34fd1e0309038d0765f2497b7925c16a8ed2 (diff) |
Drop o3tl::span, can use C++20 std::span directly now
Change-Id: Ic21ff7bf48f07f7277979d52e99d2c5c268de83f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157825
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/configure.ac b/configure.ac index e1153831be3f..f04904541cdc 100644 --- a/configure.ac +++ b/configure.ac @@ -7724,22 +7724,6 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([ CXXFLAGS=$save_CXXFLAGS AC_LANG_POP([C++]) -AC_MSG_CHECKING([whether $CXX_BASE supports C++2a <span> with unsigned size_type]) -AC_LANG_PUSH([C++]) -save_CXXFLAGS=$CXXFLAGS -CXXFLAGS="$CXXFLAGS $CXXFLAGS_CXX11" -AC_COMPILE_IFELSE([AC_LANG_SOURCE([ - #include <span> - #include <type_traits> - // Don't check size_type directly, as it was called index_type before P1872R0: - void f(std::span<int> s) { static_assert(std::is_unsigned_v<decltype(s.size())>); }; - ])], [ - AC_DEFINE([HAVE_CPP_SPAN],[1]) - AC_MSG_RESULT([yes]) - ], [AC_MSG_RESULT([no])]) -CXXFLAGS=$save_CXXFLAGS -AC_LANG_POP([C++]) - AC_MSG_CHECKING([whether $CXX_BASE implements C++ DR P1155R3]) AC_LANG_PUSH([C++]) save_CXXFLAGS=$CXXFLAGS |