Skip to content

Commit

Permalink
std::format -> fmt::format for C++17 on release-1.15 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl committed Jan 9, 2025
1 parent 0628a87 commit 3ecaf75
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions libtiledbsoma/src/utils/fastercsx.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
#include <numeric>
#include "span/span.hpp"

#include "./logger.h"
"
#include "parallel_functions.h"
namespace tiledbsoma::fastercsx {
Expand Down Expand Up @@ -200,7 +202,7 @@ void count_rows_(
if ((row < 0) ||
(static_cast<std::make_unsigned_t<COO_IDX>>(row) >=
n_row)) [[unlikely]] {
throw std::out_of_range(std::format(
throw std::out_of_range(fmt::format(
"First coordinate {} out of range {}.",
row,
0,
Expand Down Expand Up @@ -228,7 +230,7 @@ void count_rows_(
if ((row < 0) ||
(static_cast<std::make_unsigned_t<COO_IDX>>(row) >= n_row))
[[unlikely]] {
throw std::out_of_range(std::format(
throw std::out_of_range(fmt::format(
"First coordinate {} out of range {}.", row, 0, n_row));
}
Bp[row]++;
Expand Down Expand Up @@ -277,7 +279,7 @@ void compress_coo_inner_left_(
if ((Aj_[n] < 0) ||
(static_cast<std::make_unsigned_t<COO_IDX>>(Aj_[n]) >= n_col))
[[unlikely]] {
throw std::out_of_range(std::format(
throw std::out_of_range(fmt::format(
"Second coordinate {} out of range {}.", Aj_[n], 0, n_col));
}
Bj[dest] = Aj_[n];
Expand Down Expand Up @@ -312,7 +314,7 @@ void compress_coo_inner_right_(
if ((Aj_[n] < 0) ||
(static_cast<std::make_unsigned_t<COO_IDX>>(Aj_[n]) >= n_col))
[[unlikely]] {
throw std::out_of_range(std::format(
throw std::out_of_range(fmt::format(
"Second coordinate {} out of range {}.", Aj_[n], 0, n_col));
}
Expand Down

0 comments on commit 3ecaf75

Please sign in to comment.