|
@@ -230,8 +230,10 @@ locale::__imp::__imp(const string& name, size_t refs)
|
|
|
|
|
|
// NOTE avoid the `base class should be explicitly initialized in the
|
|
// NOTE avoid the `base class should be explicitly initialized in the
|
|
// copy constructor` warning emitted by GCC
|
|
// copy constructor` warning emitted by GCC
|
|
|
|
+#if defined(__clang__) || _GNUC_VER >= 406
|
|
#pragma GCC diagnostic push
|
|
#pragma GCC diagnostic push
|
|
#pragma GCC diagnostic ignored "-Wextra"
|
|
#pragma GCC diagnostic ignored "-Wextra"
|
|
|
|
+#endif
|
|
|
|
|
|
locale::__imp::__imp(const __imp& other)
|
|
locale::__imp::__imp(const __imp& other)
|
|
: facets_(max<size_t>(N, other.facets_.size())),
|
|
: facets_(max<size_t>(N, other.facets_.size())),
|
|
@@ -243,7 +245,9 @@ locale::__imp::__imp(const __imp& other)
|
|
facets_[i]->__add_shared();
|
|
facets_[i]->__add_shared();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#if defined(__clang__) || _GNUC_VER >= 406
|
|
#pragma GCC diagnostic pop
|
|
#pragma GCC diagnostic pop
|
|
|
|
+#endif
|
|
|
|
|
|
locale::__imp::__imp(const __imp& other, const string& name, locale::category c)
|
|
locale::__imp::__imp(const __imp& other, const string& name, locale::category c)
|
|
: facets_(N),
|
|
: facets_(N),
|