clean-up
This commit is contained in:
parent
821418dd1c
commit
292ca9f563
1 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ struct identity {
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct remove_all_pointers
|
struct remove_all_pointers
|
||||||
: std::conditional<std::is_pointer<T>::value,
|
: std::conditional<std::is_pointer<T>::value,
|
||||||
remove_all_pointers<typename std::remove_cv<typename std::remove_pointer<T>::type>::type>,
|
remove_all_pointers<typename std::remove_pointer<T>::type>,
|
||||||
identity<T>>::type {};
|
identity<T>>::type {};
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
@ -75,7 +75,7 @@ class cstring final {
|
||||||
public:
|
public:
|
||||||
constexpr cstring(const char* str, std::size_t length, std::size_t prefix = 0, std::size_t suffix = 0) noexcept
|
constexpr cstring(const char* str, std::size_t length, std::size_t prefix = 0, std::size_t suffix = 0) noexcept
|
||||||
: str_{str + prefix},
|
: str_{str + prefix},
|
||||||
size_(length - prefix - suffix) {}
|
size_{length - prefix - suffix} {}
|
||||||
|
|
||||||
constexpr cstring() noexcept : cstring{nullptr, 0, 0, 0} {}
|
constexpr cstring() noexcept : cstring{nullptr, 0, 0, 0} {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue