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

This commit is contained in:
Deukhoofd committed 2022-03-23 13:04:04 +01:00
1 parent 9eca4fa9bb
commit 3b19f8b268
3 files changed
+3 -3

No files matched your search

+1 -1
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.
+1 -1
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.
+1 -1
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.