This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ctor fails: vector<int>(size_type, int)



>>>>> "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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]