util/{Const,Writable}Buffer: use std::size_t

This commit is contained in:
Max Kellermann
2020-01-03 15:38:02 +01:00
parent 4b0e288f00
commit e654c6e005
5 changed files with 11 additions and 10 deletions

View File

@@ -33,6 +33,7 @@
#include "StringPointer.hxx"
#include <algorithm>
#include <cstddef>
/**
* A string pointer whose memory is managed by this class.
@@ -47,7 +48,7 @@ public:
typedef typename StringPointer<T>::const_reference_type const_reference_type;
typedef typename StringPointer<T>::pointer_type pointer_type;
typedef typename StringPointer<T>::const_pointer_type const_pointer_type;
typedef size_t size_type;
typedef std::size_t size_type;
static constexpr value_type SENTINEL = '\0';