Skip to content

Commit

Permalink
avoid modules in typename string
Browse files Browse the repository at this point in the history
  • Loading branch information
benlorenz committed Apr 12, 2024
1 parent 7feec3d commit 37ffa60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/meta.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ translate_type_to_pm_string(::Type{<:Base.Integer}) = "Integer"
translate_type_to_pm_string(::Type{<:OscarNumber}) = "OscarNumber"
translate_type_to_pm_string(::typeof(min)) = "Min"
translate_type_to_pm_string(::typeof(max)) = "Max"
translate_type_to_pm_string(::Type{T}) where T <: DirType = string(T)
translate_type_to_pm_string(::Type{T}) where T <: DirType = string(nameof(T))
translate_type_to_pm_string(::Type{<:QuadraticExtension{T}}) where T = string("QuadraticExtension<", translate_type_to_pm_string(T), ">")

translate_type_to_pm_string(T) = throw(DomainError(T, "$T has been passed as a type parameter but no translation to a C++ template was defined. You may define such translation by appropriately extending
Expand Down

0 comments on commit 37ffa60

Please sign in to comment.