Document macro usage and simplify code

This commit is contained in:
Gudmundur Adalsteinsson
2020-05-16 13:00:46 +00:00
parent 6d71b9b541
commit 1fc3a9a873
5 changed files with 37 additions and 17 deletions

View File

@@ -158,7 +158,7 @@ TEST_CASE("message to string", "[message]")
const zmq::message_t b("Foo", 3);
CHECK(a.to_string() == "");
CHECK(b.to_string() == "Foo");
#ifdef ZMQ_CPP17
#if CPPZMQ_HAS_STRING_VIEW
CHECK(a.to_string_view() == "");
CHECK(b.to_string_view() == "Foo");
#endif