Skip to content

Commit 37912cf

Browse files
KronosTheLateoxinabox
authored andcommitted
Conditional import of Base.isfull
1 parent b5ba47d commit 37912cf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/circular_buffer.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,11 @@ Return capacity of CircularBuffer.
179179
"""
180180
capacity(cb::CircularBuffer) = cb.capacity
181181

182+
# Base might define `isfull` from julia 1.11 onwards, see julia PR #53159
183+
if isdefined(Base, :isfull)
184+
import Base: isfull
185+
end
186+
182187
"""
183188
isfull(cb::CircularBuffer)
184189

0 commit comments

Comments
 (0)