aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/src
diff options
context:
space:
mode:
authorFrançois Dumont <fdumont@gcc.gnu.org>2012-10-18 19:50:37 +0000
committerFrançois Dumont <fdumont@gcc.gnu.org>2012-10-18 19:50:37 +0000
commit14cbb5d84ccf53215f55066a6f07c629986ae9e2 (patch)
tree34bf4a9562ff07a024989aa0df8e2fe4da90b296 /libstdc++-v3/src
parent67e4210bf18a6ec35b00159b486f40f24dc02c36 (diff)
downloadgcc-14cbb5d84ccf53215f55066a6f07c629986ae9e2.zip
gcc-14cbb5d84ccf53215f55066a6f07c629986ae9e2.tar.gz
gcc-14cbb5d84ccf53215f55066a6f07c629986ae9e2.tar.bz2
formatter.h (_Debug_msg_id): Add __msg_valid_load_factor.
2012-10-18 François Dumont <fdumont@gcc.gnu.org> * include/debug/formatter.h (_Debug_msg_id): Add __msg_valid_load_factor. * include/debug/macros.h (__glibcxx_check_max_load_factor): New. * include/debug/unordered_set (unordered_set<>::max_load_factor(float)): Check max load factor is positive. (unordered_multiset<>::max_load_factor(float)): Likewise. * include/debug/unordered_map (unordered_map<>::max_load_factor(float)): Likewise. (unordered_multimap<>::max_load_factor(float)): Likewise. * testsuite/23_containers/unordered_map/debug/max_load_factor_neg.cc: New. * testsuite/23_containers/unordered_multimap/debug/ max_load_factor_neg.cc: New. * testsuite/23_containers/unordered_set/debug/max_load_factor_neg.cc: New. * testsuite/23_containers/unordered_multiset/debug/ max_load_factor_neg.cc: New. From-SVN: r192575
Diffstat (limited to 'libstdc++-v3/src')
-rw-r--r--libstdc++-v3/src/c++11/debug.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libstdc++-v3/src/c++11/debug.cc b/libstdc++-v3/src/c++11/debug.cc
index 6cd93d1..8a18026 100644
--- a/libstdc++-v3/src/c++11/debug.cc
+++ b/libstdc++-v3/src/c++11/debug.cc
@@ -180,7 +180,8 @@ namespace __gnu_debug
"function requires a non-empty iterator range [%1.name;, %2.name;)",
"attempt to self move assign",
"attempt to access container with out-of-bounds bucket index %2;,"
- " container only holds %3; buckets"
+ " container only holds %3; buckets",
+ "load factor shall be positive"
};
void