[PATCH] D49338: Implement <span> - P0122R7

Marshall Clow via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 13 23:03:14 PDT 2018


mclow.lists added inline comments.


================
Comment at: include/span:236
+    _LIBCPP_INLINE_VISIBILITY constexpr span(pointer __ptr, index_type __count) : __data{__ptr}
+        { assert(_Extent == __count); }
+    _LIBCPP_INLINE_VISIBILITY constexpr span(pointer __f, pointer __l) : __data{__f}
----------------
These naked `assert` calls need to be `_LIBCPP_ASSERT`


https://reviews.llvm.org/D49338





More information about the cfe-commits mailing list