octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compilation failure, template problems


From: Michael Goffioul
Subject: Compilation failure, template problems
Date: Sat, 14 Nov 2009 15:31:07 +0000

Hi,

Using recent octave archive, MSVC fails to compile liboctave due
to a template problems. The error is the following:

../../liboctave/CNDArray.cc(763) : error C2563: mismatch in formal
parameter list
../../liboctave/CNDArray.cc(763) : error C2563: mismatch in formal
parameter list
../../liboctave/CNDArray.cc(763) : error C2440: 'specialization' :
cannot convert from 'overloaded-function' to 'double (__cdecl *const
)(Complex)'
        None of the functions with this name in scope match the target type
../../liboctave/CNDArray.cc(763) : error C2973: 'do_mx_unary_map' :
invalid template argument 'overloaded-function'
        c:\sources\playground\c\octave-graphics-hg\liboctave\mx-inlines.cc(264)
: see declaration of 'do_mx_unary_map'
../../liboctave/CNDArray.cc(763) : error C2668: 'do_mx_unary_map' :
ambiguous call to overloaded function
        c:\sources\playground\c\octave-graphics-hg\liboctave\mx-inlines.cc(271):
could be 'RNDA do_mx_unary_map<NDArray,ComplexNDArray,double
std::abs<double>(const std::complex<double> &)>(const XNDA &)'
        with
        [
            RNDA=NDArray,
            XNDA=ComplexNDArray
        ]
        c:\sources\playground\c\octave-graphics-hg\liboctave\mx-inlines.cc(264):
or       'RNDA do_mx_unary_map<NDArray,ComplexNDArray,& abs>(const
XNDA &)'
        with
        [
            RNDA=NDArray,
            XNDA=ComplexNDArray
        ]
        while trying to match the argument list '(const ComplexNDArray)'

Any idea how to work around the problem? This part of the code seems
pretty recent.

Michael.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]