Skip to content

Commit

Permalink
use fmt::format
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl committed Jan 23, 2025
1 parent e180194 commit 503cec2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions tiledb/sm/filesystem/mem_filesystem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
*/

#include <algorithm>
#include <format>
#include <mutex>
#include <sstream>
#include <unordered_set>
Expand Down Expand Up @@ -184,7 +183,7 @@ class MemFilesystem::File : public MemFilesystem::FSNode {
assert(buffer);

if (offset + nbytes > size_)
return LOG_STATUS(Status_MemFSError(std::format(
return LOG_STATUS(Status_MemFSError(fmt::format(
"Cannot read from file; Read exceeds file size: offset {} nbytes {} "
"size_ {}",
offset,
Expand Down
3 changes: 1 addition & 2 deletions tiledb/sm/filesystem/posix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
#include <unistd.h>

#include <algorithm>
#include <format>
#include <fstream>
#include <future>
#include <iostream>
Expand Down Expand Up @@ -275,7 +274,7 @@ void Posix::read(
uint64_t file_size;
this->file_size(URI(path), &file_size);
if (offset + nbytes > file_size) {
throw IOError(std::format(
throw IOError(fmt::format(
"Cannot read from file; Read exceeds file size: offset {}, nbytes {}, "
"file_size {}, URI {}",
offset,
Expand Down

0 comments on commit 503cec2

Please sign in to comment.