Commit Graph

1447 Commits

Author SHA1 Message Date
Frank Mori Hess
18bfaea996 Fixed perfect forwarding for make_shared() in trunk, and added
corresponding test.  Refs #2962.



[SVN r57520]
2009-11-09 18:12:35 +00:00
Frank Mori Hess
502de325ee Fixed access to enable_shared_from_raw::weak_this_ when
BOOST_NO_MEMBER_TEMPLATE_FRIENDS is defined.



[SVN r57518]
2009-11-09 16:33:35 +00:00
Frank Mori Hess
9f49538b37 Added weak_from_raw(), for use in conjunction with
enable_shared_from_raw base class.



[SVN r57423]
2009-11-05 21:41:38 +00:00
Frank Mori Hess
2ee5eb70f3 Brought back code which fixes get_deleter when it is called on a deleter
which has been wrapped inside a deleter_wrapper by "shared_from_raw() in 
constructors" support.


[SVN r57206]
2009-10-28 22:42:21 +00:00
Frank Mori Hess
32eb028e13 Renamed enable_shared_from_this2 to enable_shared_from_raw and
added shared_from_raw free function.  These changes fix the pointer 
value in shared_ptr which were obtained before an external shared_ptr has
taken ownership of the object (for example when a shared_ptr to
this is obtained in an object's constructor).



[SVN r57197]
2009-10-28 19:10:47 +00:00
Troy D. Straszheim
e824e23ec2 rm cmake from trunk. I'm not entirely sure this is necessary to satisfy the inspect script, but I'm not taking any chances, and it is easy to put back
[SVN r56942]
2009-10-17 02:07:38 +00:00
Troy D. Straszheim
e94f64039d rm cmake from the release branch before it goes out broken. Policy dictates that you never commit to release, you commit to trunk and merge to release.
[SVN r56941]
2009-10-17 01:10:45 +00:00
Peter Dimov
63b17c24ea Merge [51909], [51912], [52937], [53672] to release.
[SVN r55479]
2009-08-08 23:21:15 +00:00
Troy D. Straszheim
f5cc79f58d Copyrights on CMakeLists.txt to keep them from clogging up the inspect
reports.  This is essentially the same commit as r55095 on the release
branch.



[SVN r55159]
2009-07-26 00:49:56 +00:00
Troy D. Straszheim
8a421c2098 Add basic copyright/license to keep cmake out of the inspection report
[SVN r55095]
2009-07-22 21:51:01 +00:00
Gennadiy Rozental
28d7e348c1 avoid C style casts
[SVN r53672]
2009-06-06 09:44:36 +00:00
Troy D. Straszheim
5fa1cbf6e1 shared_ptr and bind cmake tweaks
[SVN r53001]
2009-05-14 20:20:34 +00:00
Timothy Zachary Laine
fc12543814 Merged in smart_ptr changes from the sandbox/boost0x branch created for
BoostCon '09.  This adds move semantics to weak_ptr and intrusive_ptr.


[SVN r52937]
2009-05-12 16:18:15 +00:00
Joaquín M López Muñoz
9f30442d1e merged [52456], [52457] and [52464] from trunk
[SVN r52486]
2009-04-19 10:17:50 +00:00
Peter Dimov
a4293f9dfa Merge [52454] to release. Fixes #2951.
[SVN r52472]
2009-04-18 21:32:43 +00:00
Peter Dimov
4b4a62513f Make ++a, where a is an atomic_count, return the new value.
[SVN r52456]
2009-04-17 20:24:01 +00:00
Peter Dimov
0368a37fde Bring back "explicit" on the auto_ptr rvalue constructor. Refs #2951.
[SVN r52454]
2009-04-17 19:51:18 +00:00
David Deakins
28de0cb1e3 Have config/select_stdlib_config.hpp and config/stdlib/stlport.hpp use <cstddef> instead of <utility> to determine which standard library is in use. For std lib implementations that rely on Boost components like TypeTraits, Bind, Function, or SmartPtr, this helps to avoid circular header dependency issues, since <cstddef> is much less likely to pull in Boost libraries than <utility>.
In get_pointer.hpp, switched to using <boost/config/no_tr1/memory.hpp> instead of using <memory> directly.  As above, this helps avoid circular header dependency issues in Boost-supplemented std libs (specifically it avoids issues when <memory> pulls in pieces of Boost.SmartPtr).

These two changes were made in response to testing done with STLport 5.2.1 using the _STLP_USE_BOOST_SUPPORT option.

[SVN r52221]
2009-04-06 21:25:18 +00:00
David Deakins
3dacec8e1d Have config/select_stdlib_config.hpp and config/stdlib/stlport.hpp use <cstddef> instead of <utility> to determine which standard library is in use. For std lib implementations that rely on Boost components like TypeTraits, Bind, Function, or SmartPtr, this helps to avoid circular header dependency issues, since <cstddef> is much less likely to pull in Boost libraries than <utility>.
In get_pointer.hpp, switched to using <boost/config/no_tr1/memory.hpp> instead of using <memory> directly.  As above, this helps avoid circular header dependency issues in Boost-supplemented std libs (specifically it avoids issues when <memory> pulls in pieces of Boost.SmartPtr).

These two changes were made in response to testing done with STLport 5.2.1 using the _STLP_USE_BOOST_SUPPORT option.

[SVN r52104]
2009-04-01 14:42:11 +00:00
Peter Dimov
a1b4fc8d95 Merge [51978], [51985] to release. Closes #2885.
[SVN r52016]
2009-03-27 13:10:46 +00:00
Peter Dimov
5758e51948 Fix sp_typeinfo.hpp include. Refs #2885.
[SVN r51985]
2009-03-26 12:47:24 +00:00
Peter Dimov
287d329276 Added g++/MIPS support submitted by David Joyner. Refs #2885.
[SVN r51978]
2009-03-26 00:17:57 +00:00
Peter Dimov
d34d638998 Bring back the constructor-enabled enable_shared_from_this as enable_shared_from_this2.
[SVN r51912]
2009-03-22 21:11:17 +00:00
Peter Dimov
6f2bdddfa0 Delete enable_shared_from_this2.hpp from boost/.
[SVN r51910]
2009-03-22 20:14:13 +00:00
Peter Dimov
9227371881 Move enable_shared_from_this2.hpp to boost/smart_ptr.
[SVN r51909]
2009-03-22 20:13:16 +00:00
Peter Dimov
e88dd9fc77 Bring back the new enable_shared_from_this.
[SVN r51908]
2009-03-22 20:08:39 +00:00
Peter Dimov
77971c6ff5 Merge [51686] to release.
[SVN r51847]
2009-03-18 23:02:27 +00:00
Frank Mori Hess
1742c37942 Merged [51699] and [51700] from trunk to release.
Closes #1897


[SVN r51703]
2009-03-11 15:08:14 +00:00
Frank Mori Hess
fa3c56747d Added missing semicolon at end of &uuml
[SVN r51700]
2009-03-11 13:55:29 +00:00
Frank Mori Hess
fbc6919eae Adding documentation for make_shared and allocate_shared to smart_ptr docs.
It is adopted from n2351 "Improving shared_ptr for C++0x, Revision 2". 
Also includes some minor corrections.
Refs #1897



[SVN r51699]
2009-03-11 13:48:51 +00:00
Peter Dimov
31e06b4a1d Merge [51643] to release. Fixes #2813.
[SVN r51688]
2009-03-10 18:26:57 +00:00
Peter Dimov
dc3ffc5f4b Attempt to fix como link failure.
[SVN r51686]
2009-03-10 18:07:13 +00:00
Peter Dimov
0610947c4a De-optimize assignment into this_type(r).swap(*this) - turns out that they were not equivalent, leading to leaks in contrived cases. Refs #2813.
[SVN r51643]
2009-03-07 22:21:56 +00:00
Peter Dimov
22f1b092c9 Merge [51581] to release. Fixes #2126. Fixes #2584.
[SVN r51632]
2009-03-05 23:06:17 +00:00
Peter Dimov
9c55fbc6c2 Fix enable_shared_from_this-related tickets in trunk. Refs #2126. Refs #2584.
[SVN r51581]
2009-03-03 19:25:26 +00:00
Peter Dimov
5a2771e585 Merge [51518] to release. Closes #2814.
[SVN r51539]
2009-03-02 16:45:22 +00:00
Peter Dimov
dad59f3325 Merge [51517] to release. Closes #2525.
[SVN r51538]
2009-03-02 16:42:28 +00:00
Peter Dimov
bad394b1e9 Merge [51516] to release. Closes #2662.
[SVN r51537]
2009-03-02 16:39:53 +00:00
Peter Dimov
f93110620a Merge [51515] to release. Closes #2675.
[SVN r51536]
2009-03-02 16:37:31 +00:00
Peter Dimov
6be1e3fceb Merge [51514] to release. Closes #2394.
[SVN r51535]
2009-03-02 16:35:06 +00:00
Peter Dimov
cf91287732 Merge [51509], [51519] to release. Closes #2239.
[SVN r51531]
2009-03-02 16:22:16 +00:00
Peter Dimov
68c939ec5a Fix #includes in spinlock_test.cpp, spinlock_try_test.cpp, yield_k_test.cpp.
[SVN r51519]
2009-03-01 18:54:51 +00:00
Peter Dimov
a378c8c278 Refs #2814 (fixed in trunk.)
[SVN r51518]
2009-03-01 18:42:44 +00:00
Peter Dimov
905a3711db Refs #2525 (fixed in trunk.)
[SVN r51517]
2009-03-01 18:01:19 +00:00
Peter Dimov
ed32efcc51 Refs #2662 (applied to trunk.)
[SVN r51516]
2009-03-01 17:27:35 +00:00
Peter Dimov
eb0ff40d62 Refs #2675 (fixed in trunk.)
[SVN r51515]
2009-03-01 17:18:17 +00:00
Peter Dimov
ad1b344405 Refs #2394 (fixed in trunk.)
[SVN r51514]
2009-03-01 17:10:49 +00:00
Peter Dimov
0da6902267 Move smart_ptr into boost/smart_ptr/*.hpp (refs #2239).
[SVN r51509]
2009-03-01 16:00:42 +00:00
Peter Dimov
10f6ff8b77 Sync smart_ptr/test/Jamfile.v2 with release.
[SVN r51486]
2009-02-28 21:08:25 +00:00
Peter Dimov
13f91c15f0 Sync enable_shared_from_this.hpp and shared_ptr.hpp with release.
[SVN r51485]
2009-02-28 20:02:12 +00:00