Skip to content

Commit

Permalink
Merge pull request #896 from KronosTheLate/conditional_import_isfull
Browse files Browse the repository at this point in the history
Conditional import of Base.isfull
  • Loading branch information
oxinabox authored Mar 5, 2024
2 parents 5451407 + e660ebb commit 77692ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/circular_buffer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,11 @@ Return capacity of CircularBuffer.
"""
capacity(cb::CircularBuffer) = cb.capacity

# Base might define `isfull` from julia 1.11 onwards, see julia PR #53159
if isdefined(Base, :isfull)
import Base: isfull
end

"""
isfull(cb::CircularBuffer)
Expand Down

0 comments on commit 77692ea

Please sign in to comment.