From 3ecaf7564783211465dc2d6b597a56f7c07c67a5 Mon Sep 17 00:00:00 2001 From: John Kerl Date: Thu, 9 Jan 2025 16:54:03 -0500 Subject: [PATCH] `std::format` -> `fmt::format` for C++17 on `release-1.15` branch --- libtiledbsoma/src/utils/fastercsx.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/libtiledbsoma/src/utils/fastercsx.h b/libtiledbsoma/src/utils/fastercsx.h index 3ffc46ae21..8797ad3e67 100644 --- a/libtiledbsoma/src/utils/fastercsx.h +++ b/libtiledbsoma/src/utils/fastercsx.h @@ -37,6 +37,8 @@ #include #include "span/span.hpp" +#include "./logger.h" + " #include "parallel_functions.h" namespace tiledbsoma::fastercsx { @@ -200,7 +202,7 @@ void count_rows_( if ((row < 0) || (static_cast>(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, @@ -228,7 +230,7 @@ void count_rows_( if ((row < 0) || (static_cast>(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]++; @@ -277,7 +279,7 @@ void compress_coo_inner_left_( if ((Aj_[n] < 0) || (static_cast>(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]; @@ -312,7 +314,7 @@ void compress_coo_inner_right_( if ((Aj_[n] < 0) || (static_cast>(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)); }