CI updates

This commit is contained in:
Markus F.X.J. Oberhumer
2025-11-08 09:05:25 +01:00
parent b04d566b83
commit 98c00d0fcb
10 changed files with 57 additions and 47 deletions
+8 -7
View File
@@ -34,11 +34,6 @@ class CSelf {
#endif
public:
typedef T element_type;
typedef typename std::add_lvalue_reference<T>::type reference;
typedef typename std::add_pointer<T>::type pointer;
typedef size_t size_type;
// befriend all
template <class>
friend struct PtrOrSpan;
@@ -47,6 +42,11 @@ public:
template <class>
friend struct Span;
typedef T element_type;
typedef typename std::add_lvalue_reference<T>::type reference;
typedef typename std::add_pointer<T>::type pointer;
typedef size_t size_type;
#if XSPAN_CONFIG_ENABLE_IMPLICIT_CONVERSION
public:
operator pointer() const noexcept { return ptr; }
@@ -449,9 +449,10 @@ public: // raw access
if (bytes > 0) {
if __acc_cte (!configRequirePtr && ptr == nullptr)
xspan_fail_nullptr();
if __acc_cte (configRequireBase || base != nullptr) {
if __acc_cte (configRequireBase || base != nullptr)
xspan_check_range(ptr, base, size_in_bytes - bytes);
}
if very_unlikely (__acc_cte(VALGRIND_CHECK_MEM_IS_ADDRESSABLE(ptr, bytes) != 0))
throwCantPack("raw_bytes valgrind-check-mem");
}
return ptr;
}