aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2019-10-22 22:48:53 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2019-10-22 22:48:53 +0100
commit9e1f9bc54496c65a11987dc7c238c84878d10062 (patch)
treecd5df82396538ac753784cc71c7459ea941b2e4b /libstdc++-v3/include
parent2cae56bd61a048b0fac5c2829283744abc44c545 (diff)
downloadgcc-9e1f9bc54496c65a11987dc7c238c84878d10062.zip
gcc-9e1f9bc54496c65a11987dc7c238c84878d10062.tar.gz
gcc-9e1f9bc54496c65a11987dc7c238c84878d10062.tar.bz2
Do not declare std::uses_allocator before C++11
* include/bits/memoryfwd.h (uses_allocator): Do not declare for C++98. * testsuite/17_intro/names.cc: Check uses_allocator in C++98. From-SVN: r277301
Diffstat (limited to 'libstdc++-v3/include')
-rw-r--r--libstdc++-v3/include/bits/memoryfwd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libstdc++-v3/include/bits/memoryfwd.h b/libstdc++-v3/include/bits/memoryfwd.h
index d42eabe..6542adc 100644
--- a/libstdc++-v3/include/bits/memoryfwd.h
+++ b/libstdc++-v3/include/bits/memoryfwd.h
@@ -68,9 +68,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
class allocator<void>;
#endif
+#if __cplusplus >= 201103L
/// Declare uses_allocator so it can be specialized in \<queue\> etc.
template<typename, typename>
struct uses_allocator;
+#endif
/// @} group memory