For those who care, a revised version of RunVector can be found at http://home.cinci.rr.com/dancers/code/ Is this the sort of thing that would belong in boost?...
Andrew D Jewell
ajewell@...
Mar 1, 2000 9:31 pm
2320
Steve, ... Aha! someone else who can't resist a challenge :-) I've only looked *quickly* at your alignment code, however I don't think that it quite guarentees...
John Maddock
John_Maddock@...
Mar 2, 2000 12:24 pm
2321
... think ... code ... be ... figured ... My code required alignment on a multiple of sizeof(char *); however, it would still break if other alignments are not...
Stephen Cleary
scleary@...
Mar 2, 2000 5:56 pm
2322
... Okay, I see what you're saying. However, I'd expect persons with such a setup to be rather familiar with the steps involved in juggling between two (or...
Braden N. McDaniel
braden@...
Mar 2, 2000 10:33 pm
2323
... I've been trying to find a reasonable safe-pointer representation to hold the ownership of a class data member - ie, replace class C { TYP *t; ... }; with ...
Paul Jensen
pdjensen@...
Mar 3, 2000 2:05 am
2324
... My initial reaction is that the range of applications for RunVector is a bit too narrow to attract a lot of interest from boost members. On the other hand,...
Beman Dawes
beman@...
Mar 3, 2000 2:37 am
2325
... 1. garbage collector 2. Saves on space overhead for dynamic allocation (size labels, internal fragmentation) 3. Should be faster than almost any...
Dave Abrahams
abrahams@...
Mar 3, 2000 5:11 am
2326
... The above highlights a need for boost::shared_ptr<> to co-exist with other smart pointer implementations. The current 'policy' for boost::shared_ptr<>...
Gavin Collings
gcollings@...
Mar 3, 2000 2:01 pm
2327
Hope this isn't off-target, but have you considered instances where the programmer might want to specify data alignments that don't correspond to any native...
Reid Sweatman
borderland@...
Mar 3, 2000 2:04 pm
2328
I'm not sure I understand why shared_ptr alone is not sufficient for your purposes. auto_ptr and shared_ptr are different animals altogether. The auto_ptr ...
Borgerding, Mark A.
MarkAB@...
Mar 3, 2000 2:05 pm
2329
While trying to improve the random number library, especially the various non-uniform distribution functions, I decided that I needed a tool to analyze the...
Jens Maurer
jmaurer@...
Mar 3, 2000 3:11 pm
2330
... implementations. ... This has ... into ... operation in ... not). ... (e.g. ... smart ... Hi Gavin, While I am curious if anyone comes up with a suitable...
Miki Jovanovic
miki@...
Mar 3, 2000 3:26 pm
2331
I put an updated linked_ptr.hpp in the vault under smart_pointers. http://www.egroups.com/docvault/boost/smart_pointers Changes: added linked_array put...
Borgerding, Mark A.
MarkAB@...
Mar 3, 2000 4:52 pm
2332
... the ... correspond to ... possible to ... when ... assembler, ... alignment ... default to ... The scheme we have will work for the alignment requirements...
Stephen Cleary
scleary@...
Mar 3, 2000 5:03 pm
2333
... I think which ever way it is defined, release() would need to have warning labels attached. As you point out, it's an unpleasant choice between ...
Gavin Collings
gcollings@...
Mar 3, 2000 5:05 pm
2334
... collector? ... internal ... OK. Yes, pool should do all these. It uses the obvious fixed-size allocation algorithm that you find in *any* embedded OS,...
Stephen Cleary
scleary@...
Mar 3, 2000 5:20 pm
2335
... do so means ... more ... him take the ... itself as ... Hi Gavin, It is me again. If I was not clear in my first example, I will use yours. In both of your...
Miki Jovanovic
miki@...
Mar 3, 2000 5:22 pm
2336
Say, I think I figured out how to fix the inefficiencies in pool! pool, as it stands right now, has a list of storage units. The problem is that each of these...
Stephen Cleary
scleary@...
Mar 3, 2000 5:30 pm
2337
... was ... Hi Miki, I think we're at cross purposes regarding the semantics of release(). Assuming that we're not talking about the one which is restricted to...
Gavin Collings
gcollings@...
Mar 3, 2000 6:26 pm
2338
... whole, ... at ... Hi Gavin, OK, I understand now where you are going with this. And I agree. If we can agree to have a #define which includes/excludes...
Miki Jovanovic
miki@...
Mar 3, 2000 7:11 pm
2339
Hi Mark, Smart pointers in my apps are not copied many times, so I am really interested in your linked pointers. I just have couple of small issues with...
Miki Jovanovic
miki@...
Mar 3, 2000 8:00 pm
2340
... Unfortunately, there are not many platform independent synchronization packages. I have tried to hide any platform specific code behind appropriate...
Borgerding, Mark A.
MarkAB@...
Mar 3, 2000 9:20 pm
2341
... Yes, and this is good. ... We already have boost::scoped_ptr and of course std::auto_ptr which implement different ownership semantics. ... Yes. ... No. ...
Jens Maurer
jmaurer@...
Mar 3, 2000 9:26 pm
2342
... I though of several approaches to release(). Approach #1) Notify everybody. In this approach, every linked_ptr to a given heap object would be nullified....
Borgerding, Mark A.
MarkAB@...
Mar 3, 2000 9:52 pm
2343
... you ... = ... above ... end up ... synchronization ... thing as ... Check this execution path... thread1 thread2 ... ptr1 = ptr2 if ptr...
Miki Jovanovic
miki@...
Mar 3, 2000 10:01 pm
2344
... [snip] ... Not to make light of the problem, but that still falls into the catch-all category of undefined behavior. I wanted to make linked_ptr safe to...
Borgerding, Mark A.
MarkAB@...
Mar 3, 2000 10:46 pm
2345
As I drove away after hurrying to finish my previous correspondence, I realized that if I could convert one share of a jointly owned object into full...
Paul Jensen
pdjensen@...
Mar 3, 2000 11:16 pm
2346
Yeah, makes sense. The only reason I suggested it is that it would make things somewhat more self-documenting....
Reid Sweatman
borderland@...
Mar 4, 2000 7:50 am
2347
... as closed as ... be used. ... The problem with answering yes to this question is that despite all good intentions to use best practice, situations...
Gavin Collings
gcollings@...
Mar 4, 2000 9:53 am
2348
Looks like a well implemented worthwhile addition to me. I've often used a similar technique without formalizing it. One question though, have you considered...