
8 May
2008
8 May
'08
8:55 p.m.
1. freelist
template <typename T, std::size_t max_size = 64> class freelist : public dummy_freelist<T> { ... };
I think the following is better:
template <typename T, typename Alloc = dummy_freelist<T>, std::size_t max_size = 64> class freelist { Alloc m_alloc; };
yes, i see your point ... probably it should be changed in a way to use stl-style allocators ....
2. explicit keyword
stack(unsigned int n); => explicit stack(unsigned int n); freelist(std::size_t initial_nodes); => explicit freelist(std::size_t initial_nodes);
that is a good point ... thanks, tim -- tim@klingt.org http://tim.klingt.org Life is really simple, but we insist on making it complicated. Confucius