libstdc++: Only include <ext/atomicity.h> for COW string
authorJonathan Wakely <jwakely@redhat.com>
Thu, 19 May 2022 11:54:41 +0000 (12:54 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 19 May 2022 22:39:20 +0000 (23:39 +0100)
commitf3e22baec0290c23654e99bf184153765944f4aa
tree56b2b15dc39cf95e0cc107c98008a2878c135cdf
parent8ccdc7ce33f5e7ca509e5b9f835ed4719db21ffd
libstdc++: Only include <ext/atomicity.h> for COW string

Since the COW std::string was moved to its own header, we don't need the
atomic dispatch helpers in the definition of std::__cxx11::string. Move
the inclusion of the <ext/atomicity.h> header to <bits/cow_string.h>
where it's needed.

libstdc++-v3/ChangeLog:

* include/bits/basic_string.h: Do not include <ext/atomicity.h>
here.
* include/bits/cow_string.h: Include it here.
libstdc++-v3/include/bits/basic_string.h
libstdc++-v3/include/bits/cow_string.h