]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/strtol: do not check for existence of <charconv> 41729/head
authorKefu Chai <kchai@redhat.com>
Mon, 7 Jun 2021 09:18:19 +0000 (17:18 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 9 Jun 2021 15:26:00 +0000 (23:26 +0800)
commit254c1bc7d0bd41e0db9923abaf44d049d96f332c
tree3fd89c8e7095cd9e3c6c381d53106ae82c2aedd9
parent756a3512ce74b93953ced1d99e063b496f9a920b
common/strtol: do not check for existence of <charconv>

<charconv> is available since GCC-8, see https://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#status.iso.2017

> Elementary string conversions P0067R5 11.1 (integral types supported since 8.1) __has_include(<charconv>), __cpp_lib_to_chars >= 201611

since we always have the access to GCC-8.1 and up, there is no need to
detect the existence of <charconv> anymore.

also, because GCC-11 introduced the support of float types support,
update the comment to reflect the change.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/strtol.h