Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

why is operator overloading for << so BROKEN

35 views
Skip to first unread message

Popping mad

unread,
Nov 8, 2016, 6:44:32 AM11/8/16
to
I have a series of data structures that I wanted to display information on using operator overloading for operator<< and it has proven to be impossible!!

why is it so broken

It can't even decide if a "string" is a *char or a something else and just bombs.

It is not usable.

Wouter van Ooijen

unread,
Nov 8, 2016, 11:49:20 AM11/8/16
to
Op 08-Nov-16 om 12:44 PM schreef Popping mad:
Which is in sharp contrast with your post, which constains a wealth of
details, so now we all know exactly what you exepected of operator<<,
what you observed, and what the cause is.

Thank you so much for including all the details!

Wouter "Objects? No Thanks!" van Ooijen



Öö Tiib

unread,
Nov 8, 2016, 2:33:43 PM11/8/16
to
On Tuesday, 8 November 2016 13:44:32 UTC+2, Popping mad wrote:
> I have a series of data structures that I wanted to display information
> on using operator overloading for operator<< and it has proven to
> be impossible!!

No, it is doable. Ignorance may pass with time. Try again.

>
> why is it so broken

Your code is broken because you wrote it that way and respond arrogantly
when others try to help you. Try again.

>
> It can't even decide if a "string" is a *char or a something else
> and just bombs.

That does not parse. Nothing in C++ is *char so compiler does not
even need to consider if something is *char.

>
> It is not usable.

This Fox has a longing for grapes:
He jumps, but the bunch still escapes.
So he goes away sour;
And, 'tis said, to this hour
Declares that he's no taste for grapes

0 new messages