Skip to content

Commit

Permalink
IOSS: Fix some misues of lib::fmt causing issues with C++20
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsjaar committed Jul 31, 2024
1 parent abc1a6b commit 80470e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions packages/seacas/libraries/ioss/src/Ioss_DatabaseIO.C
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,7 @@ namespace Ioss {

DatabaseIO::~DatabaseIO() = default;

Ioss::DataSize DatabaseIO::int_byte_size_data_size() const
{
return dbIntSizeAPI;
}
Ioss::DataSize DatabaseIO::int_byte_size_data_size() const { return dbIntSizeAPI; }

int DatabaseIO::int_byte_size_api() const
{
Expand Down Expand Up @@ -1638,7 +1635,7 @@ namespace {
else {
char sep = (util.parallel_size() > 1) ? ':' : ' ';
for (auto &p_time : all_times) {
fmt::print(strm, "{:8d}{}", p_time, sep);
fmt::print(strm, "{:8}{}", p_time, sep);
}
}
if (util.parallel_size() > 1) {
Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/libraries/ioss/src/Ioss_Utils.C
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,7 @@ void Ioss::Utils::info_fields(const Ioss::GroupingEntity *ige, Ioss::Field::Role
fmt::print("{1:>{0}s}:{2} ", max_width, field_name, comp_count);
cur_out += max_width + 4;
if (cur_out + max_width >= width) {
fmt::print(suffix);
fmt::print("{}", suffix);
cur_out = 8;
}
}
Expand Down

0 comments on commit 80470e6

Please sign in to comment.