Skip to content

Commit a02c35d

Browse files
committed
remove <format>
1 parent dfa6d61 commit a02c35d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

include/glaze/ext/glaze_asio.hpp

+6-4
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,6 @@ namespace glz
566566
};
567567
}
568568

569-
#include <format>
570-
571569
// IMPORTANT: The code below is an alternative version of asio_client that uses repe::message in its API
572570
// This is probably a better approach and may replace glz::asio_client in the future
573571
namespace glz
@@ -600,10 +598,14 @@ namespace glz
600598
uint32_t error_length{};
601599
std::memcpy(&error_length, msg.body.data(), 4);
602600
const std::string_view error_message{msg.body.data() + 4, error_length};
603-
return {std::format("REPE error: {} | {}", format_error(ec), error_message)};
601+
std::string ret = "REPE error: ";
602+
ret.append(format_error(ec));
603+
ret.append(" | ");
604+
ret.append(error_message);
605+
return {ret};
604606
}
605607
else {
606-
return {std::format("REPE error: {}", format_error(ec))};
608+
return std::string{"REPE error: "} + format_error(ec);
607609
}
608610
}
609611

0 commit comments

Comments
 (0)