]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Remove misleading comment in __atomic_base<Int>
authorJonathan Wakely <jwakely@redhat.com>
Tue, 15 Apr 2014 19:13:41 +0000 (20:13 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Sat, 22 Feb 2025 21:20:19 +0000 (21:20 +0000)
No conversion is needed because the type of _M_i is __int_type anyway.

libstdc++-v3/ChangeLog:

* include/bits/atomic_base.h (__atomic_base<_ITp>): Remove
misleading comment.

libstdc++-v3/include/bits/atomic_base.h

index b56007b7bf5f76b8e32a51042c775a6f6584fad7..92d1269493f716255742ba8f2839b4f014fecc19 100644 (file)
@@ -355,7 +355,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       __atomic_base& operator=(const __atomic_base&) = delete;
       __atomic_base& operator=(const __atomic_base&) volatile = delete;
 
-      // Requires __int_type convertible to _M_i.
       constexpr __atomic_base(__int_type __i) noexcept : _M_i (__i) { }
 
       operator __int_type() const noexcept