Boost logo

Boost :

From: Tim Blechmann (tim_at_[hidden])
Date: 2008-05-08 16:55:50


> 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_at_[hidden]
http://tim.klingt.org
Life is really simple, but we insist on making it complicated.
  Confucius

Boost list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk