Boost logo

Boost :

From: Joerg Baumann (Joerg.Baumann_at_[hidden])
Date: 2002-07-16 07:51:44


On Tue, 16 Jul 2002, Giovanni Bajo wrote:

> From: "Joerg Baumann" <Joerg.Baumann_at_[hidden]>
>
> > after receiving only approving comments I cleaned up the code and put it
> > on http://groups.yahoo.com/group/boost/files/make_string/make_string1.cpp
>
> Comeau complains:
>
> "make_string1.cpp", line 192: error: "ext::make_basic_string<Check, CharT,
> TraitsT, AllocT>::make_basic_string(ext::make_basic_string<Check,
> CharT, TraitsT, AllocT> &) [with
> Check=ext::make_basic_string_policies::throw_on_error, CharT=char,
> TraitsT=std::char_traits<char>, AllocT=std::allocator<char>]",
> required for copy that was eliminated, is not callable because
> reference parameter cannot be bound to rvalue
> << (make_string() << 7 << " of " << 9)
> ^

The "page: 7 of 9" use was the last change I made.
I found that error too, corrected it, but uploaded the old file.
I know I'm stupid, but I hope it helps that I'm very sorry about that
mistake.

I removed the wrong and put the right version under:
http://groups.yahoo.com/group/boost/files/make_string/make_string2.cpp

The correct way was to remove the
  ostream& operator<<(ostream&, const make_basic_string&)
and use
  << (make_string() << 7 << " of " << 9).str()

Regards
  joerg

PS:
Referening a signature I use sometimes:

"Sometimes when I'm talking, my words can't keep up with
my thoughts. I wonder why we think faster than we can speak."
  -- "Probably so we can think twice."
                                            (Calvin & Hobbes)

"Sometimes when I'm uploading, my thoughts can't keep up with
my mouse-clicks. I wonder why we upload faster than we can think."
  -- "Probably so we can upload twice."


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk