Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed May 27, 2024
1 parent 863c16a commit 6738b98
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test_pb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#include "iguana/pb_reader.hpp"
#include "iguana/pb_writer.hpp"

#if defined(__clang__) || defined(_MSC_VER) || \
(defined(__GNUC__) && __GNUC__ > 8)
void print_hex_str(const std::string &str) {
std::ostringstream oss;
oss << std::hex << std::setfill('0');
Expand Down Expand Up @@ -623,6 +625,7 @@ TEST_CASE("test variant") {
CHECK(std::get<double>(st2.y) == 3.88);
}
}
#endif

DOCTEST_MSVC_SUPPRESS_WARNING_WITH_PUSH(4007)
int main(int argc, char **argv) { return doctest::Context(argc, argv).run(); }
Expand Down

0 comments on commit 6738b98

Please sign in to comment.