Re: Generic Data Structure Library in C
On Sun, 17 Dec 2000, Eray Ozkural (exa) wrote:
> In brief, you can't have the STL iterators/allocators/... in C because
> those are thought with the ability of C++ compiler to optimize out
> most of the code ;)
So use a C++ compiler to compile your code.
> Neither you can have generic type-safe containers because C isn't a
> generic language. You have to keep void* pointers and node sizes,
> etc. The implementation should be more like java containers rather than
> STL I guess.
Just use the STL with your (otherwise) C code!
-Dave
--
"Some little people have music in them, but Fats, he was all music,
and you know how big he was." -- James P. Johnson
Reply to: