Hi all,

I'm having some trouble adapting CxxWrap to the new constructor syntax (as
opposed to adding call(::Type{...) methods in 0.4). The error is equivalent
to the following pure Julia example:

type MT{T}
       msg::String
end

julia> MT{Float64}() = MT{Float64}("float")
WARNING: static parameter Float64 does not occur in signature for Type at
REPL[67]:1.
The method will not be callable.

And indeed:

julia> MT{Float64}()
ERROR: MethodError: no method matching MT{Float64}()

The old syntax still works:
julia> call(::Type{MT{Float64}}) = MT{Float64}("float")
julia> MT{Float64}()
MT{Float64}("float")

Is there any way around this? Wrapping C++ template types requires
specifying the template types in the constructor for all compiled-in types.

Cheers,

Bart

Reply via email to