Re: [Plib-devel] sg & STL
Brought to you by:
sjbaker
From: <Va...@t-...> - 2000-08-01 21:29:47
|
Amit Bakshi wrote: > > 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? The WeatherDatabase of the FlightGear project has wrappers for the basic sg types (actually, only the vectors). The reason why I had to wrap them, was that I wanted to store them in a vector (or was it a list?). It's very easy to achieve that. So I think that everybody could do it himself in the own code if Steve doesn't want it in PLIB. But we might consider putting it in the yet to come Aux library. Hm, it'll perhaps might be a good idea to move the FGFS STL inportability handling to the Aux library, so that other projects can benefit. CU, Christian |