Skip to content

Commit

Permalink
Re-add inner constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
dpsanders committed May 28, 2024
1 parent 7b4a500 commit 0bdfa8c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/intervals/exact_literals.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ See also: [`@exact`](@ref).
"""
struct ExactReal{T<:Real} <: Real
value :: T

ExactReal{T}(value::T) where {T<:Real} = new{T}(value)
ExactReal(value::T) where {T<:Real} = new{T}(value)
end

_value(x::ExactReal) = x.value # hook for interval constructor
Expand Down

0 comments on commit 0bdfa8c

Please sign in to comment.