Menu

#1 retvalue by reference require temp variable

1.0
open
nobody
None
2012-11-20
2012-11-20
No

class Inteface {
public:
virtual QString& getValue() = 0
}

  1. Required temp variable for correct transmitting to client code.
  2. Need to use non refernced type for constructing return value holder.

must be generated:
...
QString getValue_retvalue;
virtual QString& getValue()
{
return getValue_retvalue = CXXMOCK_GET(QString )
}

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.