Author: hhinnant
Date: Sat Feb 18 16:01:22 2012
New Revision: 150893
URL: http://llvm.org/viewvc/llvm-project?rev=150893&view=rev
Log:
Give the emulated nullptr_t a default constructor.
Modified:
libcxx/trunk/include/cstddef
Modified: libcxx/trunk/include/cstddef
URL:
http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/cstddef?rev=150893&r1=150892&r2=150893&view=diff
==============================================================================
--- libcxx/trunk/include/cstddef (original)
+++ libcxx/trunk/include/cstddef Sat Feb 18 16:01:22 2012
@@ -62,6 +62,7 @@
struct __nat {int __for_bool_;};
+ _LIBCPP_ALWAYS_INLINE nullptr_t() {}
_LIBCPP_ALWAYS_INLINE nullptr_t(int __nat::*) {}
_LIBCPP_ALWAYS_INLINE operator int __nat::*() const {return 0;}
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits