Re: [Plib-devel] sg & STL
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2000-08-02 01:01:03
|
"Curtis L. Olson" wrote: > > Amit Bakshi writes: > > Has anyone tried putting any of the sg* types into an STL container yet? > > I tried it but it doesnt work as most types are typedef'd to float[n]. I was > > thinking of wrapping the simple types into a class which provides proper > > operators so that the sg* functions still work. Has anyone done this yet? > > Just so you know, the plib author is not exactly thrilled with using > the STL (probably mostly because of the portability issues it > creates.) There is a wide variety of STL implimentations (or various > stages of implimentations) out there which can cause a lot of > compatibility problems between the various compilers. Yep - as Curt predicts - I'm not very fond of STL - but I don't think that's the issue here. > Before you get too far down this path, you probably will want to have > a serious discussion about it with Steve because I doubt he will be in > favor of making these sorts of modifications to plib. Does this actually require making changes to SG? SG is really the most basic low level thing - I quite expect you to want to wrap it with other things when you need to - but to use it "raw" when speed is needed (eg in SSG). However, I don't see a whole lot of benefit to including those wrappers in PLIB...and as usual I'm very averse to adding dependancies to PLIB. -- Steve Baker HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://web2.airmail.net/sjbaker1 Projects : http://plib.sourceforge.net http://tuxaqfh.sourceforge.net http://tuxkart.sourceforge.net http://prettypoly.sourceforge.net |