$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Rainer Deyke (root_at_[hidden])
Date: 2002-03-11 12:22:35
----- Original Message -----
From: "Howard Hinnant" <hinnant_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Monday, March 11, 2002 7:12 AM
Subject: Re: [boost] Re: container design (Was: std::complex design
(Was: N-Dimensional array))
> > The way I approach these things is by being explicit:
> >
> > template<class F> vector::vector(size_type n, init_tag, F f);
>
> If that's not an iron clad argument in favor of restricted templates
> then I don't know what is. ;-)
Restricted templates won't necessarily do the right thing.
class initializer {
public:
template<class T> void operator()(T *, size_t);
};
std::vector initializers(100, initializer());
-- Rainer Deyke | root_at_[hidden] | http://rainerdeyke.com