Commit Graph

13 Commits

Author SHA1 Message Date
Jim Blandy
c9b9f5bf52 Bug 1121080: Fix comments in Move.h explaining perfect forwarding. DONTBUILD r=waldo 2015-01-13 10:48:58 -08:00
Masatoshi Kimura
1ac9001f06 Bug 1120062 - Part 2: Remove use of IsNullPointer. r=waldo 2015-01-15 02:09:11 +09:00
Nicholas Nethercote
e286b23cb3 Bug 1036789 - Convert the third quarter of MFBT to Gecko style. r=Ms2ger. 2014-07-10 19:10:17 -07:00
Nicholas Nethercote
50bb9d3f06 Bug 1026319 - Convert the second quarter of MFBT to Gecko style. r=froydnj. 2014-06-12 23:34:08 -07:00
Nathan Froyd
e34dff1cf5 No bug - fix a comment in Move.h; irc-rs=Waldo DONTBUILD because comment fixes can't break anything...right? 2014-02-07 08:08:08 -05:00
Jeff Walden
400a152552 Bug 953296 - Implement mozilla::NullptrT as a typedef to use to accept nullptr values. Also add mozilla::IsNullPointer<T>, a trait for detecting *only* true nullptr (emulated nullptr [__null] used by gcc 4.4/4.5 isn't true nullptr). r=ehsan
Generally, if you want a decltype(nullptr)-based overload, you should use SFINAE and IsNullPointer.  (Examples are provided in NullPtr.h comments.)  The problem is NullptrT matches far more than just __null as emulated nullptr for gcc 4.4/4.5 overloading purposes.  This problem is unavoidable without true nullptr.  Currently, the only valid use for NullptrT is believed to be in operator overloads.  All existing nullptr-overloading code has been rewritten to use the appropriate technique for the situation, and MOZ_HAVE_CXX11_NULLPTR is no longer an API.
2014-01-02 17:27:41 -06:00
Jim Blandy
3336c431eb Bug 896100: Convert all uses of OldMove and MoveRef to true rvalue references and the modern Move and Forward. r=luke, r=waldo 2013-11-19 09:05:36 -08:00
Justin Lebar
de6e31b5aa Bug 909977 - Rename mozilla::Move to mozilla::OldMove, and make mozilla::Move a synonym for std::move(). r=waldo 2013-08-29 11:54:14 -07:00
Ms2ger
d1c985e201 Bug 896341 - Update include guards and modelines in MFBT; r=Waldo 2013-07-24 09:41:39 +02:00
Jeff Walden
baa6c0968a Bug 891177 - Add an explanatory comment by the const_cast<> in the Move(const T&) overload. r=luke 2013-07-13 12:54:18 -07:00
Justin Lebar
5413d8bc3c Bug 892839 - Fix buggy example code in Move.h. r=luke DONTBUILD 2013-07-15 10:40:30 -07:00
Jeff Walden
cf1b4b44b2 Bug 891177 - Move js::Swap to mozilla::Swap. r=terrence 2013-07-03 15:57:33 -07:00
Jeff Walden
bcbca08eaf Bug 891177 - Implement Move.h to define a move-construction interface. r=terrence 2013-07-02 17:25:13 -07:00