This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: ctor fails: vector<int>(size_type, int)
- To: yotam_medini at tmai dot com
- Subject: Re: ctor fails: vector<int>(size_type, int)
- From: Mark Mitchell <mmitchell at usa dot net>
- Date: Tue, 7 Oct 1997 10:50:23 GMT
- Cc: mmitchell at usa dot net, egcs-bugs at cygnus dot com
- References: <199710071700.KAA29245@telaviv.tmai.com>
- Reply-To: mmitchell at usa dot net
>>>>> "Yotam" == Yotam Medini <yotamm@tmai.com> writes:
Yotam> Thanks for the educated answer. In that
Yotam> http://www.cygnus.com/ml/egcs/1997-Oct/0162.html the
Yotam> suggested style is vector v((size_t) 3, 5); Is 'size_t'
Yotam> definition guaranteed to be included by #include <vector> ?
Yotam> -- yotam
Yes. If you look in <vector> you will see that some function
prototypes use size_t, so it should be defined at that point.
--
Mark Mitchell mmitchell@usa.net
Stanford University http://www.stanford.edu