toon-members
[Top][All Lists]
Advanced

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

[Toon-members] Min /Max do not work


From: Gabriel Nützi
Subject: [Toon-members] Min /Max do not work
Date: Sat, 5 Dec 2009 16:24:18 +0100

I have an urgent question :-)

The min max functions in TooN would be nice to have but they dont work, do you know whats wrong by me, or wrong coded?


I wrote:

int a = TooN::min( makeVector(1,2,3) ) ;

(included TooN/helpers.h)

but seems that something else is wrong here?

the error output of the Visual Studio 08 is:

Thanks alot for the help!!



=============================================================

1>C:\Documents and Settings\SEGANUT\Desktop\MatlabFunction\includes \TooN/helpers.h(578) : error C2039: 'less' : is not a member of 'std' 1> .\Kinematic.cpp(84) : see reference to function template instantiation 'Precision TooN::min<2,TooN::DefaultPrecision,TooN::Internal::VBase>(const TooN::Vector<Size> &)' being compiled
1>        with
1>        [
1>            Precision=TooN::DefaultPrecision,
1>            Size=2
1>        ]
1>C:\Documents and Settings\SEGANUT\Desktop\MatlabFunction\includes \TooN/helpers.h(578) : error C2065: 'less' : undeclared identifier 1>C:\Documents and Settings\SEGANUT\Desktop\MatlabFunction\includes \TooN/helpers.h(578) : error C2275: 'Precision' : illegal use of this type as an expression
1>        .\Kinematic.cpp(84) : see declaration of 'Precision'
1>C:\Documents and Settings\SEGANUT\Desktop\MatlabFunction\includes \TooN/helpers.h(578) : error C2143: syntax error : missing ';' before '>' 1>C:\Documents and Settings\SEGANUT\Desktop\MatlabFunction\includes \TooN/helpers.h(578) : error C2143: syntax error : missing ';' before '>' 1>C:\Documents and Settings\SEGANUT\Desktop\MatlabFunction\includes \TooN/helpers.h(580) : error C2065: 'vector_accumulate_functor' : undeclared identifier 1>C:\Documents and Settings\SEGANUT\Desktop\MatlabFunction\includes \TooN/helpers.h(580) : error C2784: 'Ret TooN::Internal::accumulate(const TooN::Matrix<R,C,P,B> &)' : could not deduce template argument for 'const TooN::Matrix<R,C,P,B> &' from 'const TooN::Vector<Size>'
1>        with
1>        [
1>            Size=2
1>        ]
1> C:\Documents and Settings\SEGANUT\Desktop\MatlabFunction \includes\TooN/helpers.h(350) : see declaration of 'TooN::Internal::accumulate' 1>C:\Documents and Settings\SEGANUT\Desktop\MatlabFunction\includes \TooN/helpers.h(580) : error C2784: 'Ret TooN::Internal::accumulate(const TooN::Matrix<R,C,P,B> &)' : could not deduce template argument for 'const TooN::Matrix<R,C,P,B> &' from 'const TooN::Vector<Size>'
1>        with
1>        [
1>            Size=2
1>        ]
1> C:\Documents and Settings\SEGANUT\Desktop\MatlabFunction \includes\TooN/helpers.h(350) : see declaration of 'TooN::Internal::accumulate' 1>C:\Documents and Settings\SEGANUT\Desktop\MatlabFunction\includes \TooN/helpers.h(580) : error C2784: 'Ret TooN::Internal::accumulate(const TooN::Matrix<R,C,P,B> &)' : could not deduce template argument for 'const TooN::Matrix<R,C,P,B> &' from 'const TooN::Vector<Size>'
1>        with
1>        [
1>            Size=2
1>        ]
1> C:\Documents and Settings\SEGANUT\Desktop\MatlabFunction \includes\TooN/helpers.h(350) : see declaration of 'TooN::Internal::accumulate' 1>C:\Documents and Settings\SEGANUT\Desktop\MatlabFunction\includes \TooN/helpers.h(580) : error C2784: 'Ret TooN::Internal::accumulate(const TooN::Matrix<R,C,P,B> &)' : could not deduce template argument for 'const TooN::Matrix<R,C,P,B> &' from 'const TooN::Vector<Size>'
1>        with
1>        [
1>            Size=2
1>        ]
1> C:\Documents and Settings\SEGANUT\Desktop\MatlabFunction \includes\TooN/helpers.h(350) : see declaration of 'TooN::Internal::accumulate' 1>C:\Documents and Settings\SEGANUT\Desktop\MatlabFunction\includes \TooN/helpers.h(580) : error C2784: 'Ret TooN::Internal::accumulate(const TooN::Matrix<R,C,P,B> &)' : could not deduce template argument for 'const TooN::Matrix<R,C,P,B> &' from 'const TooN::Vector<Size>'
1>        with
1>        [
1>            Size=2
1>        ]
1> C:\Documents and Settings\SEGANUT\Desktop\MatlabFunction \includes\TooN/helpers.h(350) : see declaration of 'TooN::Internal::accumulate' 1>C:\Documents and Settings\SEGANUT\Desktop\MatlabFunction\includes \TooN/helpers.h(580) : error C2784: 'Ret TooN::Internal::accumulate(const TooN::Matrix<R,C,P,B> &)' : could not deduce template argument for 'const TooN::Matrix<R,C,P,B> &' from 'const TooN::Vector<Size>'
1>        with
1>        [
1>            Size=2
1>        ]
1> C:\Documents and Settings\SEGANUT\Desktop\MatlabFunction \includes\TooN/helpers.h(350) : see declaration of 'TooN::Internal::accumulate' 1>C:\Documents and Settings\SEGANUT\Desktop\MatlabFunction\includes \TooN/helpers.h(580) : error C2784: 'Ret TooN::Internal::accumulate(const TooN::Matrix<R,C,P,B> &)' : could not deduce template argument for 'const TooN::Matrix<R,C,P,B> &' from 'const TooN::Vector<Size>'
1>        with
1>        [
1>            Size=2
1>        ]
1> C:\Documents and Settings\SEGANUT\Desktop\MatlabFunction \includes\TooN/helpers.h(350) : see declaration of 'TooN::Internal::accumulate' 1>C:\Documents and Settings\SEGANUT\Desktop\MatlabFunction\includes \TooN/helpers.h(580) : error C2783: 'Ret TooN::Internal::accumulate(const TooN::Vector<Size,P,B> &)' : could not deduce template argument for 'Func' 1> C:\Documents and Settings\SEGANUT\Desktop\MatlabFunction \includes\TooN/helpers.h(338) : see declaration of 'TooN::Internal::accumulate' 1>C:\Documents and Settings\SEGANUT\Desktop\MatlabFunction\includes \TooN/helpers.h(580) : error C2783: 'Ret TooN::Internal::accumulate(const TooN::Vector<Size,P,B> &)' : could not deduce template argument for 'Ret' 1> C:\Documents and Settings\SEGANUT\Desktop\MatlabFunction \includes\TooN/helpers.h(338) : see declaration of 'TooN::Internal::accumulate'
=============================================================

=============================================================





reply via email to

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