File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change 2929// They might as well reword the warning to say "This constructor is doing exactly what
3030// you want, but we are going to warn about it anyway. And make you do dumb workarounds to
3131// avoid the warning."
32- template <typename T>
33- constexpr auto unsafe_forge_span (T* pointer, size_t size) {
34- #ifdef __clang__
35- # pragma clang unsafe_buffer_usage begin
36- #endif
37- return std::span (pointer, size);
38- #ifdef __clang__
39- # pragma clang unsafe_buffer_usage end
40- #endif
41- }
4232
4333template <std::contiguous_iterator T>
4434constexpr auto unsafe_forge_span (T iter, ptrdiff_t size) {
@@ -51,11 +41,6 @@ constexpr auto unsafe_forge_span(T iter, ptrdiff_t size) {
5141#endif
5242}
5343
54- template <typename T>
55- constexpr auto unsafe_forge_span (T* pointer, std::signed_integral auto size) {
56- return unsafe_forge_span (pointer, static_cast <size_t >(size));
57- }
58-
5944template <std::contiguous_iterator T>
6045constexpr auto unsafe_forge_span (T iter, std::unsigned_integral auto size) {
6146 return unsafe_forge_span (iter, static_cast <ptrdiff_t >(size));
You can’t perform that action at this time.
0 commit comments