ZMQ pub blocks (#97)

This commit is contained in:
Lee *!* Clagett
2024-03-31 13:32:33 -04:00
committed by Lee *!* Clagett
parent 486ad3b616
commit d49cc0df9a
10 changed files with 204 additions and 5 deletions

View File

@@ -193,7 +193,13 @@ namespace wire_write
template<typename T>
inline std::size_t array_size_(std::true_type, const T& source)
{ return boost::size(source); }
{
static_assert(
!std::is_same<typename std::iterator_traits<typename T::const_iterator>::iterator_category, std::input_iterator_tag>{},
"Input iterators must use json (or similar) derived classes directly"
);
return boost::size(source);
}
template<typename T>
inline constexpr std::size_t array_size_(std::false_type, const T&) noexcept