[LLVMbugs] [Bug 18721] std::bind() seems to not pass placeholder arguments correctly when they are repeated

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Feb 4 00:59:56 PST 2014


jonathan.sauer at gmx.de changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from jonathan.sauer at gmx.de ---
It seems that this isn't a bug, but intended behavior:


C.f. C++11 ยง20.

| 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.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140204/b381791b/attachment.html>

More information about the llvm-bugs mailing list