mirror of
https://codeberg.org/wownero/wownero-lws
synced 2026-01-10 23:55:16 -08:00
ZMQ pub blocks (#97)
This commit is contained in:
committed by
Lee *!* Clagett
parent
486ad3b616
commit
d49cc0df9a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user