Author: James KanzeJames Kanze
Date: Dec 16, 2007 02:47
On Dec 16, 10:03 am, Chris Forone <4...@gmx.at> wrote:
> why have i to bracket the second ctor param in the following example?
> #include
> #include
> int main()
> {
> std::ifstream file(__FILE__);
>
> if (file.is_open())
> {
> noskipws(file);
> std::string text(std::istream_iterator(file),
> (std::istream_iterator())); // extra brackets here
> }
> }
You don't. You can bracket the first instead:-).
|