Compare commits

..

7 Commits

Author SHA1 Message Date
nobody
3e542bfb95 This commit was manufactured by cvs2svn to create tag
'Version_1_18_2'.

[SVN r8120]
2000-11-03 20:02:18 +00:00
Beman Dawes
1412e40490 Make shared_ptr ctor from auto_ptr explicit. (Robert Vugts)
[SVN r8012]
2000-10-19 21:16:46 +00:00
Beman Dawes
00c5642eb4 1.17.0 release candidate runup
[SVN r7683]
2000-08-03 15:26:16 +00:00
Beman Dawes
d3347b6d08 Initial HTML commit
[SVN r7640]
2000-07-27 14:27:00 +00:00
Beman Dawes
ed7e13da9f Initial commit
[SVN r7638]
2000-07-27 14:18:23 +00:00
Beman Dawes
90b7ec19d1 Changed throw() to // never throws.
[SVN r7628]
2000-07-24 16:21:10 +00:00
Beman Dawes
468c41041b This commit was generated by cvs2svn to compensate for changes in r4,
which included commits to RCS files with non-trunk default branches.


[SVN r7621]
2000-07-07 16:04:40 +00:00

View File

@@ -9,6 +9,7 @@
// See http://www.boost.org for most recent version including documentation.
// Revision History
// 19 Oct 00 Make shared_ptr ctor from auto_ptr explicit. (Robert Vugts)
// 24 Jul 00 Change throw() to // never throws. See lib guidelines
// Exception-specification rationale. (Beman Dawes)
// 22 Jun 00 Remove #if continuations to fix GCC 2.95.2 problem (Beman Dawes)
@@ -140,7 +141,7 @@ template<typename T> class shared_ptr {
}
template<typename Y>
shared_ptr(std::auto_ptr<Y>& r) {
explicit shared_ptr(std::auto_ptr<Y>& r) {
pn = new long(1); // may throw
px = r.release(); // fix: moved here to stop leak if new throws
}
@@ -164,7 +165,7 @@ template<typename T> class shared_ptr {
return *this;
}
#else
shared_ptr(std::auto_ptr<T>& r) {
explicit shared_ptr(std::auto_ptr<T>& r) {
pn = new long(1); // may throw
px = r.release(); // fix: moved here to stop leak if new throws
}