Streams have a void* conversion operator.
This is a discussion on Bizarre behavior of the string::find() function within the C++ Programming forums, part of the General Programming Boards category; Streams have a void* conversion operator....
Something like:Originally Posted by Programmer_P
In the next version of the C++ standard library we expect it to become:Code:operator void*() const;
Code:explicit operator bool() const;
Alright, I guess I'll have to avoid using such use cases then, or find a way to make the function work with it.
Last edited by Programmer_P; 03-09-2011 at 10:40 AM.
I'm an alien from another world. Planet Earth is only my vacation home, and I'm not liking it.