Re: Error on overloading IOStream operators in C++
Re: Error on overloading IOStream operators in C++
- Subject: Re: Error on overloading IOStream operators in C++
- From: Thomas Engelmeier <email@hidden>
- Date: Fri, 9 Feb 2007 15:13:25 +0100
On 09.02.2007, at 03:37, John Daniel wrote:
The correct prototype is
friend std::ostream& operator <<( std::ostream& out, const term &rhs);
Did you #include <iostream> and issue "using namespace std;"
I wouldn't recommend that.
Additional iostream operators are potentially declared in an header
file, and this will "poison" all files #including the header. If one
really feels the urgent need to use a using directive,
using std::istream;
using std::ostream;
using std::iostream;
using std::endl;
is at least partially cleaner.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden