[libcxx-commits] [PATCH] D131855: [libc++] Refactors charconv data tables.

Mark de Wever via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sun Aug 14 04:08:05 PDT 2022


Mordante created this revision.
Herald added a project: All.
Mordante requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Currently the data tables can't be used in a constexpr function. This is
required to implement P2291R3 "Add Constexpr Modifiers to Functions
to_chars and from_chars for Integral Types in <charconv> Header"

Since inline constexpr variables are supported since C++17 use this them
starting from C++17. Before use the old tables and a reference helper
variable.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D131855

Files:
  libcxx/include/__charconv/tables.h
  libcxx/include/__charconv/to_chars_base_10.h
  libcxx/include/charconv
  libcxx/src/include/ryu/digit_table.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131855.452508.patch
Type: text/x-patch
Size: 23528 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220814/ed15ca3b/attachment-0001.bin>


More information about the libcxx-commits mailing list