I cannot get the following stringstreamm to compile
stringstream qss;
qss.operator << "some text " ::stringstream.operator << DDateTime::date2Oracle(dFrom) ::stringstream.operator << " more text " ::stringstream.operator << DDateTime::date2Oracle(dUntil);
If I just use the <<
operator without the ::stringstream.operator
it complains about the operator being ambigious, now it complains about incorrect syntax...
error C2143: syntax error : missing ';' before 'std::stringstream'
EDIT:
error C2593: 'operator <<' is ambiguous c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\ostream(434): could be 'std::basic_ostream<_Elem,_Traits>::_Myt &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ostream<_Elem,_Traits>::_Mysb *)' with [ _Elem=char, _Traits=std::char_traits ]