Skip to content

Commit

Permalink
Make exporting of std::ranges functions conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
barche committed Nov 6, 2024
1 parent ad11b16 commit 6651572
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/CxxWrap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -949,11 +949,14 @@ CppEnum, ConstArray, CxxBool, CxxLong, CxxULong, CxxChar, CxxChar16, CxxChar32,
CxxLongLong, CxxULongLong, ptrunion, gcprotect, gcunprotect, isnull

using .StdLib: StdVector, StdString, StdWString, StdValArray, StdThread, StdDeque, StdQueue, StdStack,
StdSet, StdMultiset, StdUnorderedSet, StdUnorderedMultiset, StdPriorityQueue, StdList, StdForwardList,
StdUpperBound, StdLowerBound, StdBinarySearch
StdSet, StdMultiset, StdUnorderedSet, StdUnorderedMultiset, StdPriorityQueue, StdList, StdForwardList

export StdLib, StdVector, StdString, StdWString, StdValArray, StdThread, StdDeque, StdQueue, StdStack,
StdSet, StdMultiset, StdUnorderedSet, StdUnorderedMultiset, StdPriorityQueue, StdList, StdForwardList,
StdUpperBound, StdLowerBound, StdBinarySearch
StdSet, StdMultiset, StdUnorderedSet, StdUnorderedMultiset, StdPriorityQueue, StdList, StdForwardList

@static if isdefined(StdLib, :HAS_RANGES)
using StdUpperBound, StdLowerBound, StdBinarySearch
export StdUpperBound, StdLowerBound, StdBinarySearch
end

end # module

0 comments on commit 6651572

Please sign in to comment.