<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 23, 2016, at 1:57 PM, David Blaikie <<a href="mailto:dblaikie@gmail.com" class="">dblaikie@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Presumably you could just "return *this" (or "return StringRef()”)<br class=""></div></div></blockquote>Ah yeah, StringRef() is better than what I had.  I do personally prefer it over ‘*this’ just because I like that data() will be nullptr.<br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><br class="">Perhaps you could test that the allocator is not invoked for that copy operation?</div></div></blockquote><div>Good point.  Added that now.</div><div><br class=""></div><div>Cheers</div><div>Pete</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""></div></div></blockquote></div></body></html>