Link to home
Start Free TrialLog in
Avatar of LuckyLucks
LuckyLucks

asked on

return type

HI

Why would a function returning B& cause a memory leak? B,A are two C++ classes.

Eg

B& A::myfunction(){ ....}

thanks
SOLUTION
Avatar of ste5an
ste5an
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial