mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
ircd::fmt: Fix assert from 737d9dd1626; possibly fix clang ref bug related f65839b1e5
20bc23abde
.
This commit is contained in:
parent
b61a566b03
commit
2f7004b994
1 changed files with 5 additions and 5 deletions
10
ircd/fmt.cc
10
ircd/fmt.cc
|
@ -1051,9 +1051,9 @@ const
|
|||
});
|
||||
|
||||
struct generator
|
||||
:karma::grammar<char *, const string_view &>
|
||||
:karma::grammar<char *, const string_view>
|
||||
{
|
||||
karma::rule<char *, const string_view &> string
|
||||
karma::rule<char *, const string_view> string
|
||||
{
|
||||
*(karma::print)
|
||||
,"string"
|
||||
|
@ -1061,19 +1061,19 @@ const
|
|||
|
||||
_r1_type width;
|
||||
_r2_type pad;
|
||||
karma::rule<char *, const string_view &(ushort, char)> aligned_left
|
||||
karma::rule<char *, const string_view (ushort, char)> aligned_left
|
||||
{
|
||||
karma::left_align(width, pad)[string]
|
||||
,"left aligned"
|
||||
};
|
||||
|
||||
karma::rule<char *, const string_view &(ushort, char)> aligned_right
|
||||
karma::rule<char *, const string_view (ushort, char)> aligned_right
|
||||
{
|
||||
karma::right_align(width, pad)[string]
|
||||
,"right aligned"
|
||||
};
|
||||
|
||||
karma::rule<char *, const string_view &(ushort, char)> aligned_center
|
||||
karma::rule<char *, const string_view (ushort, char)> aligned_center
|
||||
{
|
||||
karma::center(width, pad)[string]
|
||||
,"center aligned"
|
||||
|
|
Loading…
Reference in a new issue