
Originally Posted by
shad
'const QString&' should help.
my original posting was incorrect
code looks like this now.
// messagepipe.h
friend void operator<<(MessagePipe *pipe, const QString& string);
// messagepipe.cpp
void operator<<(MessagePipe *pipe, const QString& string)
{
pipe->message(string);
}
// messagepipe.h
friend void operator<<(MessagePipe *pipe, const QString& string);
// messagepipe.cpp
void operator<<(MessagePipe *pipe, const QString& string)
{
pipe->message(string);
}
To copy to clipboard, switch view to plain text mode
the error is still exactly the same.
I even recompiled the project, but that didn't help either.
Bookmarks