Skip to content

Commit

Permalink
add 'Base.copy(::BossProblem)'
Browse files Browse the repository at this point in the history
  • Loading branch information
soldasim committed Jan 14, 2025
1 parent 82b0285 commit e44582d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/problem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ See also: [`bo!`](@ref)
y_max::AbstractVector{<:Real} = fill(Inf, y_dim(data))
end

Base.copy(problem::BossProblem) = BossProblem(getfield.(Ref(problem), fieldnames(BossProblem))...)

"""
slice(::BossProblem, slice::Int) -> ::BossProblem
Expand Down

0 comments on commit e44582d

Please sign in to comment.