-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Formatters for sparrow classes #294
Formatters for sparrow classes #294
Conversation
0fa2350
to
8802f17
Compare
9c1575d
to
ed63d2d
Compare
4545986
to
6960056
Compare
{ | ||
|
||
return std::format_to(ctx.out(), "[size={}] TODO", list_value.size()); | ||
// for (std::size_t i = 0; i < list_value.size(); ++i) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to remove
include/sparrow/utils/format.hpp
Outdated
// max with names | ||
for (size_t i = 0; i < std::ranges::size(headers); ++i) | ||
{ | ||
#if defined(__clang__) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would a static_cast
avoid the warning here? I think it would be easier to read. If not, then maybe a single set of pragma enclosing the whole function would probably improve the readability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No because, as headers is a template argument, depend ending of its type, std::ranges::size(headers)
will not return the same type, in one case we have teh warning about the sign conversion, in the other a warning about useless static_cast.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still think a single set of pragma enclosing the whole function would make it easier to read.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
55ff0ba
to
d25de9a
Compare
Fix Fix Try fix WIP address comments
33a06ad
to
2841b40
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once the two remaining comments are addressed
// } | ||
// }; | ||
|
||
// #endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that intentional or is it a leftover?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
No description provided.