OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2006-09-20 Paolo Carlini <pcarlini@suse.de>
[pf3gnuchains/gcc-fork.git]
/
libstdc++-v3
/
include
/
bits
/
stl_list.h
diff --git
a/libstdc++-v3/include/bits/stl_list.h
b/libstdc++-v3/include/bits/stl_list.h
index
5ae400f
..
e37e5ee
100644
(file)
--- a/
libstdc++-v3/include/bits/stl_list.h
+++ b/
libstdc++-v3/include/bits/stl_list.h
@@
-662,7
+662,7
@@
_GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD)
/** Returns the size() of the largest possible %list. */
size_type
max_size() const
/** Returns the size() of the largest possible %list. */
size_type
max_size() const
- { return
size_type(-1
); }
+ { return
_M_get_Tp_allocator().max_size(
); }
/**
* @brief Resizes the %list to the specified number of elements.
/**
* @brief Resizes the %list to the specified number of elements.