Hello.
Is g++ 3.3.3 (Cygwin) correct in rejecting the following test program?
#include <istream>
#include <sstream>
#include <fstream>
void test(std::istream& source)
{
std::stringstream ss;
source >> ss; // offending line
}
int main()
{
std::ifstream source("simples.pgm");
test(source);
}
The compiler complains about an ambiguous overload on the line where the
program tries to extract elements from the istream and into the
stringstream. Shouldn't that be a valid operation? Or, what might I be
missing?
Thank you,
--
Ney André de Mello Zunino