Merge branch 'develop' into feature/warnings-as-errors

This commit is contained in:
Peter Dimov
2021-11-01 02:56:47 +02:00
2 changed files with 7 additions and 2 deletions

View File

@ -56,6 +56,7 @@ struct noinit_adaptor
template<class U> template<class U>
void destroy(U* p) { void destroy(U* p) {
p->~U(); p->~U();
(void)p;
} }
}; };

View File

@ -146,8 +146,12 @@ struct span_store<T, boost::dynamic_extent> {
template<class T, std::size_t E> template<class T, std::size_t E>
struct span_bytes { struct span_bytes {
static constexpr std::size_t value = E == boost::dynamic_extent ? static constexpr std::size_t value = sizeof(T) * E;
boost::dynamic_extent : sizeof(T) * E; };
template<class T>
struct span_bytes<T, boost::dynamic_extent> {
static constexpr std::size_t value = boost::dynamic_extent;
}; };
} /* detail */ } /* detail */