Skip to content

Commit 93c0bff

Browse files
committed
Work around for Apple libc++ missing deduction guides
1 parent 46ca884 commit 93c0bff

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

source/plugins/correlation/loading/correlationfileparser.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,9 @@ void CorrelationFileParser::clipValues(ClippingType clippingType, double clippin
364364
{
365365
auto end = it + width;
366366

367-
auto sortedIndices = u::sortedIndicesOf(std::span(it, end));
367+
//FIXME: pointers are passed to span here because Apple libc++
368+
// doesn't implement the generalised iterator constructor
369+
auto sortedIndices = u::sortedIndicesOf(std::span(&*it, &*end));
368370
auto metaIndex = static_cast<size_t>((clippingValue * static_cast<double>(width - 1)) / 100.0);
369371
auto clipIndex = sortedIndices.at(metaIndex);
370372
auto clipValue = *(it + clipIndex);

0 commit comments

Comments
 (0)