diff --git a/include/ircd/buffer/buffer_base.h b/include/ircd/buffer/buffer_base.h index 81a7cfa18..0160c738d 100644 --- a/include/ircd/buffer/buffer_base.h +++ b/include/ircd/buffer/buffer_base.h @@ -20,6 +20,7 @@ struct ircd::buffer::buffer using iterator = it; using value_type = typename std::remove_pointer::type; + explicit operator const it &() const; operator string_view() const; explicit operator std::string_view() const; explicit operator std::string() const; @@ -92,3 +93,11 @@ const { return { reinterpret_cast(data(*this)), size(*this) }; } + +template +ircd::buffer::buffer::operator +const it &() +const +{ + return begin(); +}