<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:jonathan.sauer@gmx.de" title="jonathan.sauer@gmx.de">jonathan.sauer@gmx.de</a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - std::bind() seems to not pass placeholder arguments correctly when they are repeated"
   href="http://llvm.org/bugs/show_bug.cgi?id=18721">bug 18721</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>INVALID
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - std::bind() seems to not pass placeholder arguments correctly when they are repeated"
   href="http://llvm.org/bugs/show_bug.cgi?id=18721#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - std::bind() seems to not pass placeholder arguments correctly when they are repeated"
   href="http://llvm.org/bugs/show_bug.cgi?id=18721">bug 18721</a>
              from <span class="vcard"><a class="email" href="mailto:jonathan.sauer@gmx.de" title="jonathan.sauer@gmx.de">jonathan.sauer@gmx.de</a>
</span></b>
        <pre>It seems that this isn't a bug, but intended behavior:

<<a href="http://stackoverflow.com/a/9945229">http://stackoverflow.com/a/9945229</a>>
<<a href="http://stackoverflow.com/a/10009750">http://stackoverflow.com/a/10009750</a>>

C.f. C++11 ยง20.8.9.1.2p10:

| if the value j of is_placeholder<TiD>::value is not zero, the argument is
| std::forward<Uj>(uj) and its type Vi is Uj&&;

By changing TestFunc's signature to

  static void TestFunc(const shared_ptr<int>& xx, const shared_ptr<int>& yy) {

the original code works as expected.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>