Message ID | 20240823122120.959471-1-jwakely@redhat.com |
---|---|
State | New |
Headers | show |
Series | [committed] libstdc++: Make debug sequence members mutable [PR116369] | expand |
diff --git a/libstdc++-v3/include/debug/safe_base.h b/libstdc++-v3/include/debug/safe_base.h index d5fbe4b1320..88d7f0b05c8 100644 --- a/libstdc++-v3/include/debug/safe_base.h +++ b/libstdc++-v3/include/debug/safe_base.h @@ -205,10 +205,10 @@ namespace __gnu_debug public: /// The list of mutable iterators that reference this container - _Safe_iterator_base* _M_iterators; + mutable _Safe_iterator_base* _M_iterators; /// The list of constant iterators that reference this container - _Safe_iterator_base* _M_const_iterators; + mutable _Safe_iterator_base* _M_const_iterators; /// The container version number. This number may never be 0. mutable unsigned int _M_version;