-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
include/types_fmt: use fmt::join() to format containers
* add formatter for classes with stream insertion operator. as in fmtlib v6.1.2, which is the one shipped with ubuntu focal, fmt::join() requires the printed element to have formatter. see fmtlib/fmt#2040 and fmtlib/fmt#1462 * use template parameter pack to represent container template argument, simpler this way. also, this enables us to print specialized classes which uses non-default template parameters. * use fmt::join() to print container elements. see also https://fmt.dev/latest/api.html#_CPPv4I0EN3fmt4joinE9join_viewIN6detail10iterator_tI5RangeEEN6detail10sentinel_tI5RangeEEERR5Range11string_view Signed-off-by: Kefu Chai <tchaikov@gmail.com>
- Loading branch information
Showing
1 changed file
with
46 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters