mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-10-07 13:46:05 +00:00
Reorder chat settings sections.
This commit is contained in:
@@ -20,9 +20,15 @@ using vector = std::vector<type>;
|
||||
template <gsl::index Size>
|
||||
using array = std::array<type, Size>;
|
||||
|
||||
inline span make_detached_span(QByteArray &container) {
|
||||
return gsl::as_writeable_bytes(gsl::make_span(container));
|
||||
}
|
||||
|
||||
template <
|
||||
typename Container,
|
||||
typename = std::enable_if_t<!std::is_const_v<Container>>>
|
||||
typename = std::enable_if_t<
|
||||
!std::is_const_v<Container>
|
||||
&& !std::is_same_v<Container, QByteArray>>>
|
||||
inline span make_span(Container &container) {
|
||||
return gsl::as_writeable_bytes(gsl::make_span(container));
|
||||
}
|
||||
|
Reference in New Issue
Block a user