Skip to content

Commit a2519c8

Browse files
authored
Merge pull request #769 from JuliaRobotics/21Q2/maint/moremani11
more compat changes for AbstractManifold
2 parents 520c6cf + 12a2770 commit a2519c8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/DistributedFactorGraphs.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ using Pkg
3131

3232
# used for @defVariable
3333
import ManifoldsBase
34-
import ManifoldsBase: Manifold, manifold_dimension
35-
export Manifold, manifold_dimension
34+
import ManifoldsBase: AbstractManifold, manifold_dimension
35+
export AbstractManifold, manifold_dimension
3636

3737
import Base: getindex
3838

src/services/DFGVariable.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ macro defVariable(structname, manifold)
101101
return esc(quote
102102
Base.@__doc__ struct $structname <: InferenceVariable end
103103

104-
@assert ($manifold isa Manifold) "@defVariable of "*string($structname)*" requires that the "*string($manifold)*" be a subtype of `ManifoldsBase.AbstractManifold`"
104+
@assert ($manifold isa ManifoldsBase.AbstractManifold) "@defVariable of "*string($structname)*" requires that the "*string($manifold)*" be a subtype of `ManifoldsBase.AbstractManifold`"
105105

106106
# user manifold must be a <:Manifold
107-
Base.convert(::Type{<:Manifold}, ::Union{<:T, Type{<:T}}) where {T <: $structname} = $manifold
107+
Base.convert(::Type{<:ManifoldsBase.AbstractManifold}, ::Union{<:T, Type{<:T}}) where {T <: $structname} = $manifold
108108

109109
getManifold(::Type{M}) where {M <: $structname} = $manifold
110110
getManifold(::M) where {M <: $structname} = getManifold(M)

0 commit comments

Comments
 (0)