PAGE2GO2 HOME | INTERNET NEWS

LeighExchange - Free Advertising Network Stock Research at Internet Speed Need Money Easy and Quick?

Re: inheriting the operator<<

 List
Subject: Re: inheriting the operator<<
Poster: niklasb@microsoft.com
Date: 23 Mar 2007 12:58:47 -0700
Related Postings: 1 2 3 4 5 6
On Mar 22, 9:59 am, Adrian Hawryluk wrote:
>
> I agree with everything but the function body. You forgot to return the
> ostream ;) like this:
>
> return o
> << static_cast(emp)
> << std::endl << "Started: " << emp.m_startDate
> << " Role: " << emp.m_job << "Dept: " << emp.m_department
> << std:: endl; << "Salary: " << emp.m_salary << std::endl;
>
> But I'm sure that was just an oversight.

Yep. Thanks for catching it. :-)

 

Page2Go2.com is not responsible for content of this message.