<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>177311</bug_id>
          
          <creation_ts>2017-09-21 10:51:53 -0700</creation_ts>
          <short_desc>Make StringBuilder movable</short_desc>
          <delta_ts>2017-09-27 12:22:37 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alex Christensen">achristensen</reporter>
          <assigned_to name="Alex Christensen">achristensen</assigned_to>
          <cc>benjamin</cc>
    
    <cc>buildbot</cc>
    
    <cc>cdumez</cc>
    
    <cc>cmarcelo</cc>
    
    <cc>dbates</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1351264</commentid>
    <comment_count>0</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2017-09-21 10:51:53 -0700</bug_when>
    <thetext>Make StringBuilder movable</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1351265</commentid>
    <comment_count>1</comment_count>
      <attachid>321449</attachid>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2017-09-21 10:52:03 -0700</bug_when>
    <thetext>Created attachment 321449
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1351267</commentid>
    <comment_count>2</comment_count>
      <attachid>321449</attachid>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2017-09-21 10:55:42 -0700</bug_when>
    <thetext>Comment on attachment 321449
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=321449&amp;action=review

&gt; Source/WTF/wtf/text/StringBuilder.h:48
&gt; +    StringBuilder(StringBuilder&amp;&amp;) = default;

I believe StringBuilder is movable already. Why wouldn&apos;t it be? See rules at http://en.cppreference.com/w/cpp/language/move_constructor (&quot;Implicitly-declared move constructor&quot; section).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1351268</commentid>
    <comment_count>3</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2017-09-21 10:57:05 -0700</bug_when>
    <thetext>I&apos;m trying to put it as a value in a HashMap, which requires this.  HashMap uses a lot of = std::forward&lt;T&gt;(value).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1351271</commentid>
    <comment_count>4</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2017-09-21 11:01:27 -0700</bug_when>
    <thetext>In this case there is a user-defined copy constructor and operator= from WTF_MAKE_NONCOPYABLE.  These need to be explicit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1351366</commentid>
    <comment_count>5</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2017-09-21 13:45:11 -0700</bug_when>
    <thetext>http://trac.webkit.org/r222346</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1353337</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-09-27 12:22:37 -0700</bug_when>
    <thetext>&lt;rdar://problem/34693155&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>321449</attachid>
            <date>2017-09-21 10:52:03 -0700</date>
            <delta_ts>2017-09-21 11:49:41 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-177311-20170921105202.patch</filename>
            <type>text/plain</type>
            <size>1234</size>
            <attacher name="Alex Christensen">achristensen</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XVEYvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9XVEYvQ2hh
bmdlTG9nCShyZXZpc2lvbiAyMjIzMzEpCisrKyBTb3VyY2UvV1RGL0NoYW5nZUxvZwkod29ya2lu
ZyBjb3B5KQpAQCAtMSwzICsxLDEzIEBACisyMDE3LTA5LTIxICBBbGV4IENocmlzdGVuc2VuICA8
YWNocmlzdGVuc2VuQHdlYmtpdC5vcmc+CisKKyAgICAgICAgTWFrZSBTdHJpbmdCdWlsZGVyIG1v
dmFibGUKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTE3
NzMxMQorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgICog
d3RmL3RleHQvU3RyaW5nQnVpbGRlci5oOgorICAgICAgICAoV1RGOjpTdHJpbmdCdWlsZGVyOjpT
dHJpbmdCdWlsZGVyKToKKwogMjAxNy0wOS0yMCAgS2VpdGggTWlsbGVyICA8a2VpdGhfbWlsbGVy
QGFwcGxlLmNvbT4KIAogICAgICAgICBKU0Mgc2hvdWxkIHVzZSB1bmlmaWVkIHNvdXJjZXMgZm9y
IHBsYXRmb3JtIHNwZWNpZmljIGZpbGVzLgpJbmRleDogU291cmNlL1dURi93dGYvdGV4dC9TdHJp
bmdCdWlsZGVyLmgKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291cmNlL1dURi93dGYvdGV4dC9TdHJpbmdCdWls
ZGVyLmgJKHJldmlzaW9uIDIyMjMwNSkKKysrIFNvdXJjZS9XVEYvd3RmL3RleHQvU3RyaW5nQnVp
bGRlci5oCSh3b3JraW5nIGNvcHkpCkBAIC00Miw5ICs0MiwxMSBAQCBwdWJsaWM6CiAgICAgU3Ry
aW5nQnVpbGRlcigpCiAgICAgICAgIDogbV9sZW5ndGgoMCkKICAgICAgICAgLCBtX2lzOEJpdCh0
cnVlKQotICAgICAgICAsIG1fYnVmZmVyQ2hhcmFjdGVyczgoMCkKKyAgICAgICAgLCBtX2J1ZmZl
ckNoYXJhY3RlcnM4KG51bGxwdHIpCiAgICAgewogICAgIH0KKyAgICBTdHJpbmdCdWlsZGVyKFN0
cmluZ0J1aWxkZXImJikgPSBkZWZhdWx0OworICAgIFN0cmluZ0J1aWxkZXImIG9wZXJhdG9yPShT
dHJpbmdCdWlsZGVyJiYpID0gZGVmYXVsdDsKIAogICAgIFdURl9FWFBPUlRfUFJJVkFURSB2b2lk
IGFwcGVuZChjb25zdCBVQ2hhciosIHVuc2lnbmVkKTsKICAgICBXVEZfRVhQT1JUX1BSSVZBVEUg
dm9pZCBhcHBlbmQoY29uc3QgTENoYXIqLCB1bnNpZ25lZCk7Cg==
</data>
<flag name="review"
          id="341430"
          type_id="1"
          status="+"
          setter="cdumez"
    />
          </attachment>
      

    </bug>

</bugzilla>