visual c++ 6.0

"Oliver Frank" <[email protected]> Tue, 24 May 2005 14:43:52 +0200
Newsgroups gmane.comp.lib.mtl.devel
Message-ID <[email protected]>
Dear MTL-Developer,

I found your library on the web and I'm pretty keen on using it for my
research projects. Whenever I try to include "mtl.h" I get error messages.
I've used the Visual C++ 6.0 compiler.

c:\projects\pca\include\mtl\mtl_limits.h(48) : warning C4003: not enough
actual parameters for macro 'min'
c:\projects\pca\include\mtl\mtl_limits.h(49) : warning C4003: not enough
actual parameters for macro 'max'
c:\projects\pca\include\mtl\mtl_limits.h(47) : error C2252: 'is_specialized'
: pure specifier can only be specified for functions
        c:\projects\pca\include\mtl\mtl_limits.h(84) : see reference to
class template instantiation 'std::numeric_limits<T>' being compiled
c:\projects\pca\include\mtl\mtl_limits.h(48) : error C2059: syntax error :
'function-style cast'
        c:\projects\pca\include\mtl\mtl_limits.h(84) : see reference to
class template instantiation 'std::numeric_limits<T>' being compiled
c:\projects\pca\include\mtl\mtl_limits.h(48) : error C2334: unexpected
token(s) preceding ':'; skipping apparent function body
        c:\projects\pca\include\mtl\mtl_limits.h(84) : see reference to
class template instantiation 'std::numeric_limits<T>' being compiled
c:\projects\pca\include\mtl\mtl_limits.h(48) : error C2143: syntax error :
missing ')' before '}'
        c:\projects\pca\include\mtl\mtl_limits.h(84) : see reference to
class template instantiation 'std::numeric_limits<T>' being compiled
c:\projects\pca\include\mtl\mtl_limits.h(48) : error C2059: syntax error :
')'
.
.
.

which according to the compiler is caused by "mtl_limits.h"

template <class T>
class numeric_limits {
public:
    static const bool is_specialized = false;
	static T min() throw() {return T();}
    static T max() throw() {return T();}
    static const int  digits = 0;
.
.
.

Do you have any idea how I can solve this problem. I'd be grateful for any
hints!

Regards,
Oli

_______________________________________________
This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/