tis 2006-05-23 klockan 13:22 -0400 skrev Nick Lewycky: > It's a temporary. pe->getReply()->head will get casted into the > HttpHeader, used to call putStr(...), then its life is over, at which > point the C++ implementation is free to destroy it at its leisure (some > impl's do it after the end of the statement, some wait until the end of > the function). > > Even if you'd said "HttpHeader HH = ...", it would still create a > temporary, copy-construct the new HttpHeader, and then destroy the > temporary.
So why did the original get smashed when the temporary was destructed? A missing copy constructor? REgards Henrik
signature.asc
Description: Detta är en digitalt signerad meddelandedel
