diff options
author | Matt Austern <austern@apple.com> | 2004-08-02 04:40:19 +0000 |
---|---|---|
committer | Matt Austern <austern@gcc.gnu.org> | 2004-08-02 04:40:19 +0000 |
commit | f1197ae1607b1834578d4470fb7ed85870f7dd77 (patch) | |
tree | 2c82d3f1e6bed4b297e3684eeead34495e6143d4 /libstdc++-v3/include/ext | |
parent | 1f09d3eb5c8b1af1916ce126e9058c29d458e763 (diff) | |
download | gcc-f1197ae1607b1834578d4470fb7ed85870f7dd77.zip gcc-f1197ae1607b1834578d4470fb7ed85870f7dd77.tar.gz gcc-f1197ae1607b1834578d4470fb7ed85870f7dd77.tar.bz2 |
re PR libstdc++/16844 (Explicit instantiation failing)
PR libstdc++/16844
* include/bits/stl_list.h (_M_create_node): Remove unused
zero-argument version.
* include/ext/slist (_M_create_node): Pass two arguments to
allocator's construct() member function.
* testsuite/23_containers/deque/explicit_instantiation.cc: New.
* testsuite/23_containers/list/explicit_instantiation.cc: New.
* testsuite/23_containers/vector/explicit_instantiation.cc: New.
* testsuite/23_containers/map/explicit_instantiation.cc: New.
* testsuite/23_containers/set/explicit_instantiation.cc: New.
* testsuite/23_containers/multimap/explicit_instantiation.cc: New.
* testsuite/23_containers/multiset/explicit_instantiation.cc: New.
* testsuite/ext/hash_set_explicit_instantiation.cc: New.
* testsuite/ext/slist_explicit_instantiation.cc: New.
From-SVN: r85428
Diffstat (limited to 'libstdc++-v3/include/ext')
-rw-r--r-- | libstdc++-v3/include/ext/slist | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/ext/slist b/libstdc++-v3/include/ext/slist index 470e7a9..2e39624 100644 --- a/libstdc++-v3/include/ext/slist +++ b/libstdc++-v3/include/ext/slist @@ -344,7 +344,7 @@ namespace __gnu_cxx _Node* __node = this->_M_get_node(); try { - get_allocator().construct(&__node->_M_data); + get_allocator().construct(&__node->_M_data, value_type()); __node->_M_next = 0; } catch(...) |