Improved range detection supporting ADL

This commit is contained in:
Gudmundur Adalsteinsson
2019-05-31 12:09:20 +00:00
parent 2d496cb296
commit f412ea9e34
4 changed files with 119 additions and 16 deletions

View File

@@ -13,17 +13,6 @@ static_assert(std::is_nothrow_swappable<zmq::message_t>::value,
"message_t should be nothrow swappable");
#endif
#ifdef ZMQ_CPP11
TEST_CASE("range SFINAE", "[message]")
{
CHECK(!zmq::detail::is_range<int>::value);
CHECK(zmq::detail::is_range<std::string>::value);
CHECK(zmq::detail::is_range<std::string&>::value);
CHECK(zmq::detail::is_range<const std::string&>::value);
CHECK(zmq::detail::is_range<decltype("hello")>::value);
}
#endif
TEST_CASE("message default constructed", "[message]")
{
const zmq::message_t message;