Turns out vector::data() can return null
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2022-03-23 13:04:04 +01:00
parent 9eca4fa9bb
commit 3b19f8b268
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
3 changed files with 3 additions and 3 deletions

View File

@ -150,7 +150,7 @@ namespace ArbUt {
/// @brief Return a raw pointer to the beginning of the list.
/// @return A raw array pointer to the beginning of the list.
const ValueT* non_null RawData() const noexcept { return _vector.data(); }
const ValueT* nullable RawData() const noexcept { return _vector.data(); }
/// @brief Returns a std::vector representation of the current list.
/// @return A std::vector representation of the current list.

View File

@ -141,7 +141,7 @@ namespace ArbUt {
/// @brief Return a raw pointer to the beginning of the list.
/// @return A raw array pointer to the beginning of the list.
ValueT* nullable const* non_null RawData() const noexcept { return _vector.data(); }
ValueT* nullable const* nullable RawData() const noexcept { return _vector.data(); }
/// @brief Returns a std::vector representation of the current list.
/// @return A std::vector representation of the current list.

View File

@ -147,7 +147,7 @@ namespace ArbUt {
/// @brief Return a raw pointer to the beginning of the list.
/// @return A raw array pointer to the beginning of the list.
ValueT* non_null const* non_null RawData() const noexcept { return _vector.data(); }
ValueT* non_null const* nullable RawData() const noexcept { return _vector.data(); }
/// @brief Returns a std::vector representation of the current list.
/// @return A std::vector representation of the current list.