On 09/01/11 09:48, ArbolOne wrote:
> main.cpp
> ~~~~~~~
>       bool tstingb = false;
>       io_base infile;
>       .... open an existing file for writing into it and then .....
>       //inset the value of 'tstingb' into the file stream
>       infile<<  tstingb<<  endl; //<<<----- Here is where the compiler
> gets a crack out of me
>
> COMPILER
> ~~~~~~~~~
> ===
> error: no match for 'operator<<' in
> 'infile.io_base::operator<<(((bool&)(&  tstingb)))<<  std::endl'
> ===
> That part is not so confusing as it is the note from the compiler that
> follows that statement:
> ====
> note: candidates are: virtual io_base&  io_base::operator<<(bool&)
> ====
> That message is disconcerting; because I AM passing a boolean variable
> to the overloaded operator.
>
>
> What am I doing wrong?
> Any body?
Isn't endl a string (a new-line character to be exact) and since you 
have not overloaded operator<< for a string the compiler is complaining?

Thats just my thoughts on the matter, I may be wrong though.

Regards
Bidski

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to