all: minor updates

This commit is contained in:
Markus F.X.J. Oberhumer
2024-02-04 13:37:00 +01:00
parent 41f6945be1
commit 29ce4807fb
6 changed files with 27 additions and 12 deletions
+1 -2
View File
@@ -45,8 +45,7 @@ public:
typedef pointer iterator;
typedef typename std::add_pointer<const T>::type const_iterator;
protected:
static constexpr size_t element_size = sizeof(element_type);
static_assert(element_size >= 1 && element_size <= UPX_RSIZE_MAX_MEM);
static const size_t element_size = sizeof(element_type);
protected:
pointer ptr;