[libcxx-commits] [libcxx] [libc++] Add basic constant folding for std::format (PR #107197)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Nov 6 09:00:23 PST 2024


================
@@ -448,13 +450,44 @@ format_to(_OutIt __out_it, wformat_string<_Args...> __fmt, _Args&&... __args) {
 }
 #  endif
 
+template <class _CharT>
+[[nodiscard]] _LIBCPP_HIDE_FROM_ABI optional<basic_string<_CharT>> __try_constant_folding(
----------------
ldionne wrote:

```suggestion
[[nodiscard]] _LIBCPP_HIDE_FROM_ABI optional<basic_string<_CharT>> __try_constant_folding_format(
```

https://github.com/llvm/llvm-project/pull/107197


More information about the libcxx-commits mailing list