News for hackers. Stuff that matters.
Re:Clang emits memcpy for std::swap, which can introduce und... by nikic on Sunday April 24, 2016 @04:00PM (#11561100)
The bug report contains a quote from the C++ standard: "An rvalue or lvalue t is swappable if and only if t is swappable with any rvalue or lvalue, respectively, of type T"

What does this statement mean and why is it not tautological?

Re:Clang emits memcpy for std::swap, which can introduce und... by yelnatz on Sunday April 24, 2016 @04:29PM (#11561229)
If you extract it for only one case, it's easier to read.

  >An rvalue t is swappable if and only if t is swappable with any rvalue of type T
Re:Clang emits memcpy for std::swap, which can introduce und... by wfunction on Sunday April 24, 2016 @04:02PM (#11561110)
It defines swappability of a single value in terms of swappability of a pair of values.