[gcc r15-7671] libstdc++: Remove misleading comment in __atomic_base<Int>

Jonathan Wakely redi@gcc.gnu.org
Sat Feb 22 21:20:45 GMT 2025


https://gcc.gnu.org/g:4470229653e9e539f389d6f41d013d243d6acafb

commit r15-7671-g4470229653e9e539f389d6f41d013d243d6acafb
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue Apr 15 20:13:41 2014 +0100

    libstdc++: Remove misleading comment in __atomic_base<Int>
    
    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.

Diff:
---
 libstdc++-v3/include/bits/atomic_base.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libstdc++-v3/include/bits/atomic_base.h b/libstdc++-v3/include/bits/atomic_base.h
index b56007b7bf5f..92d1269493f7 100644
--- a/libstdc++-v3/include/bits/atomic_base.h
+++ b/libstdc++-v3/include/bits/atomic_base.h
@@ -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


More information about the Libstdc++-cvs mailing list