[libcxx-commits] [libcxx] [libc++] Add basic constant folding for std::format (PR #107197)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Feb 2 08:50:05 PST 2025
================
@@ -447,10 +449,41 @@ format_to(_OutIt __out_it, wformat_string<_Args...> __fmt, _Args&&... __args) {
}
# endif
+template <class _CharT>
----------------
philnik777 wrote:
I'm not quite sure what kind of documentation you're asking for. Do you want a comment listing the folds it can do?
> Does the code optimize `std::format("{}", 42)`?
Not currently. I plan to add more folds though.
https://github.com/llvm/llvm-project/pull/107197
More information about the libcxx-commits
mailing list