Changing S to std::string is even better, then the explicit destructor can be removed. <captainObvious>Just make sure you declare S as "std::string", not "std::string*". </captainObvious> http://llvm-reviews.chandlerc.com/D204