[libcxx] r284021 - Mark ostream_iterator's constructors as noexcept.

Marshall Clow via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 12 09:13:48 PDT 2016


Author: marshall
Date: Wed Oct 12 11:13:48 2016
New Revision: 284021

URL: http://llvm.org/viewvc/llvm-project?rev=284021&view=rev
Log:
Mark ostream_iterator's constructors as noexcept.

Modified:
    libcxx/trunk/include/iterator

Modified: libcxx/trunk/include/iterator
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/iterator?rev=284021&r1=284020&r2=284021&view=diff
==============================================================================
--- libcxx/trunk/include/iterator (original)
+++ libcxx/trunk/include/iterator Wed Oct 12 11:13:48 2016
@@ -889,9 +889,9 @@ private:
     ostream_type* __out_stream_;
     const char_type* __delim_;
 public:
-    _LIBCPP_INLINE_VISIBILITY ostream_iterator(ostream_type& __s)
+    _LIBCPP_INLINE_VISIBILITY ostream_iterator(ostream_type& __s) _NOEXCEPT
         : __out_stream_(_VSTD::addressof(__s)), __delim_(0) {}
-    _LIBCPP_INLINE_VISIBILITY ostream_iterator(ostream_type& __s, const _CharT* __delimiter)
+    _LIBCPP_INLINE_VISIBILITY ostream_iterator(ostream_type& __s, const _CharT* __delimiter) _NOEXCEPT
         : __out_stream_(_VSTD::addressof(__s)), __delim_(__delimiter) {}
     _LIBCPP_INLINE_VISIBILITY ostream_iterator& operator=(const _Tp& __value_)
         {




More information about the cfe-commits mailing list