| 1355 | // Equivalent to zmq::buffer(std::string_view("...")). |
| 1356 | template<class Char, size_t N> |
| 1357 | constexpr const_buffer str_buffer(const Char (&data)[N]) noexcept |
| 1358 | { |
| 1359 | static_assert(detail::is_pod_like<Char>::value, "Char must be POD"); |
| 1360 | #ifdef ZMQ_EXTENDED_CONSTEXPR |
| 1361 | assert(data[N - 1] == Char{0}); |
| 1362 | #endif |
| 1363 | return const_buffer(static_cast<const Char *>(data), (N - 1) * sizeof(Char)); |
| 1364 | } |
| 1365 | |
| 1366 | namespace literals |
| 1367 | { |
nothing calls this directly
no test coverage detected