|
Boost Users : |
From: Marshall Clow (marshall_at_[hidden])
Date: 2006-09-14 00:23:58
At 9:06 PM -0700 9/13/06, Scott Meyers wrote:
[ snip ]
>I'll note that C++ itself allows "uninitialized" objects with
>constructors to be created all the time:
>
> std::ofstream ofs;
> std::vector<int>::iterator i;
> std::string s;
Just a nit - I think that your third example is not like the others.
A std::string, AFAIK, constructed with the default constructor, is
perfectly valid - just empty.
The other two - those, I'll give you ;-)
-- -- Marshall Marshall Clow Idio Software <mailto:marshall_at_[hidden]> It is by caffeine alone I set my mind in motion. It is by the beans of Java that thoughts acquire speed, the hands acquire shaking, the shaking becomes a warning. It is by caffeine alone I set my mind in motion.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net