|
Boost : |
From: rwgk (rwgk_at_[hidden])
Date: 2002-03-09 12:04:41
--- In boost_at_y..., Howard Hinnant <hinnant_at_t...> wrote:
> > 4. The standard would not officially sanction something like
> > uninitialized_flag, and yet people can still easily manage it if
they
> > want to.
>
> 5. This needs a do-the-right-thing clause <sigh>. Consider:
>
> std::vector<double> v(10000UL, 0);
>
> This will match:
>
> template<class F> vector::vector(size_type n, F f);
>
> instead of:
>
> vector(size_type, const value_type&);
>
> While implementing the "do-the-right-thing clause" is certainly
doable.
Would you have a code sample that could help me avoid
learning about potential pitfalls the hard way?
Thanks,
Ralf
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk