Commit a02c35d 1 parent dfa6d61 commit a02c35d Copy full SHA for a02c35d
File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -566,8 +566,6 @@ namespace glz
566
566
};
567
567
}
568
568
569
- #include < format>
570
-
571
569
// IMPORTANT: The code below is an alternative version of asio_client that uses repe::message in its API
572
570
// This is probably a better approach and may replace glz::asio_client in the future
573
571
namespace glz
@@ -600,10 +598,14 @@ namespace glz
600
598
uint32_t error_length{};
601
599
std::memcpy (&error_length, msg.body .data (), 4 );
602
600
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};
604
606
}
605
607
else {
606
- return { std::format ( " REPE error: {} " , format_error (ec))} ;
608
+ return std::string{ " REPE error: " } + format_error (ec);
607
609
}
608
610
}
609
611
You can’t perform that action at this time.
0 commit comments