Skip to content

Commit 0598a68

Browse files
committed
Fixing Windows i686 build
1 parent 7f3794f commit 0598a68

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

include/mdcomp/forge_span.hh

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,6 @@
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

4333
template <std::contiguous_iterator T>
4434
constexpr 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-
5944
template <std::contiguous_iterator T>
6045
constexpr auto unsafe_forge_span(T iter, std::unsigned_integral auto size) {
6146
return unsafe_forge_span(iter, static_cast<ptrdiff_t>(size));

0 commit comments

Comments
 (0)