Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

NickB

Matrix Template Library and VS.NET 2003

This topic is 5399 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Has anyone got the MTL to work with MSVC.NET 7.1 ? [edited by - NickB on January 11, 2004 6:05:14 PM]

Share this post


Link to post
Share on other sites
Advertisement
With a bit of modification I''ve gotten the parts that I use to work with .NET 2003. (I don''t know if the parts that I don''t use would work.) Basically it involved taking the _Ptrit template class from the xutility header in .NET 2002, sticking it into its own header and including that in the relevant MTL files. Also there''s a couple of instances where they forget to use the typename keyword and template <> when doing specializations.

Share this post


Link to post
Share on other sites
Brilliant! thanks! that works (my requirements are fairly simple!), just one thing I couldn''t clear-up, does anyone know what this is meant to do - I can''t figure out how to correct it so that the VS.NET compiler is happy with it:


// from about line 199 in "mtl/dense2D.h"

template <class size_t, int MM, int NN>
inline rect_offset<size_t,MM,NN>::rect_offset(const rect_offset<size_t,MM,NN>::transpose_type& x)
: dim(x.dim), ld(x.ld) { }


I assume it''s meant to be some kind of trait or policy ... but I can''t see how to make it work; at the moment I''ve got it commented out which works okay for the moment; I''m just not sure how critical it is.

Share this post


Link to post
Share on other sites
Try changing it to:

template <class size_t, int MM, int NN>
inline rect_offset<size_t,MM,NN>::rect_offset(const typename rect_offset<size_t,MM,NN>::transpose_type& x)
: dim(x.dim), ld(x.ld) { }

This is one of the missing typename lines of code.

edit: <> stuff

[edited by - SiCrane on January 11, 2004 6:20:31 PM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!