Re: [boost] Re: is_base_and_derived question

2003-01-30 Thread Daniel Frey
Rani Sharoni wrote: Compiler: GNU C++ version 3.2 20020927 (prerelease) I also tried the GCC 3.2.1, but without success. It compiles, but it gives the wrong results. Any ideas, or results from other compilers? AFAICS the Intel 7 works fine. I was able to complie the attached code (with

[boost] Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-30 Thread David B. Held
David Abrahams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... [...] Which is why the first I in RAII stands for is. Each acquired resource should initialize exactly one (sub)object. Or acquiring a resource in any other context when members can throw will

[boost] Re: Gmane thread view fixed

2003-01-30 Thread Gennaro Prota
On Wed, 29 Jan 2003 17:57:19 -0500, David Abrahams [EMAIL PROTECTED] wrote: In one of his usual shows of responsiveness, Lars has fixed a bug in Gmane that would prevent the thread view link at the bottom of a message from working because our message archive is too big. See

[boost] Re: is_convertible: rationale and wording

2003-01-30 Thread Gennaro Prota
On Tue, 28 Jan 2003 16:21:07 +0100, Gennaro Prota [EMAIL PROTECTED] wrote: On Tue, 28 Jan 2003 12:58:33 -, John Maddock [EMAIL PROTECTED] wrote: is there, among the uses of is_convertible that you have listed, any usage where no expression could be used (so that you would need to see if

[boost] Re: is_base_and_derived question

2003-01-30 Thread Gennaro Prota
On Tue, 28 Jan 2003 10:47:52 -0800, Andrei Alexandrescu [EMAIL PROTECTED] wrote: Peter Dimov [EMAIL PROTECTED] wrote in message While we're at it, is the final verdict that is_base_and_derivedvoid, X should be false? What about is_base_and_derivedvoid, void? Well, clearly void is no base. Even

Re: [boost] Re: is_base_and_derived question

2003-01-30 Thread Terje Slettebø
From: Terje Slettebø [EMAIL PROTECTED] Given that supertype/subtype has such a general meaning, how should an is_super_and_subtype be defined? I guess the proposal mean to define it in terms of inheritance, only, and in that case, it would work like is_base_and_derived, with the addition that

[boost] Re: Gmane thread view fixed

2003-01-30 Thread Gennaro Prota
On Thu, 30 Jan 2003 05:36:37 -0500, David Abrahams [EMAIL PROTECTED] wrote: Lars is looking for a volunteer to rewrite the software if you're interested... If it is in PHP then I don't think I'm the right person :-) Genny. ___ Unsubscribe other

Re: [boost] Re: Re: Re: is_base_and_derived question

2003-01-30 Thread Terje Sletteb
From: Andrei Alexandrescu [EMAIL PROTECTED] Sorry for the multiple posts. Peter Dimov [EMAIL PROTECTED] wrote in message While we're at it, is the final verdict that is_base_and_derivedvoid, X should be false? What about is_base_and_derivedvoid, void? Well, clearly void is no base.

Re: [boost] Re: is_convertible: rationale and wording

2003-01-30 Thread John Maddock
I see that you haven't replied to this for long time now. So either you are bored from the question, or it wasn't clear enough. To see if it is the second case I thought to reformulate it: Well only for a day and a bit, sorry just busy :-( Can you show, with an example, why the code used for

Re: [boost] Re: Re: is_base_and_derived question

2003-01-30 Thread John Maddock
To me this is a bad idea, from a usability point of view. I strongly object against making this change. The argument ordering is perfectly obvious in is_base_and_derived, there is no such hint in is_base. Personally I agree, I will bring this up again with the LWG folks, John Maddock

Re: [boost] Re: is_base_and_derived question

2003-01-30 Thread John Maddock
Any ideas, or results from other compilers? AFAICS the Intel 7 works fine. Thanks. John Maddock http://ourworld.compuserve.com/homepages/john_maddock/index.htm ___ Unsubscribe other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Re: [boost] Re: Re: is_base_and_derived question

2003-01-30 Thread John Maddock
The following version works on g++ for the same cases that the current is_base_and_derived works (i.e. excluding multiple bases, and private/protected inheritance), and gives an error in the cases it doesn't work, while it works completely on the compilers that supports this (such as Comeau

[boost] Re: is_base_and_derived question

2003-01-30 Thread Gennaro Prota
On Thu, 30 Jan 2003 12:38:36 -, John Maddock [EMAIL PROTECTED] wrote: Except it *doesn't work* ! The problem is that your static assertion don't test anything, changing to: //typedef char TestA[is_base_and_derivedB, D::result]; // Multiple bases (error on g++) typedef char

[boost] Re: is_base_and_derived question

2003-01-30 Thread Rani Sharoni
Daniel Frey [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Compiler: GNU C++ version 3.2 20020927 (prerelease) I also tried the GCC 3.2.1, but without success. It compiles, but it gives the wrong results. Any ideas, or results from other compilers?

Re: [boost] Re: shifted_ptr w/ lock mechanism

2003-01-30 Thread Peter Dimov
From: David B. Held [EMAIL PROTECTED] Philippe A. Bouchard [EMAIL PROTECTED] wrote in message b19hhg$i2m$[EMAIL PROTECTED]">news:b19hhg$i2m$[EMAIL PROTECTED]... [...] list shifted_ptrT took 7.1966276647 seconds to reconstruct 2000 times. [...] list shared_ptrT took 14.0157271000 seconds

Re: [boost] Re: Deadline for the Standard Library TechnicalReport

2003-01-30 Thread Gabriel Dos Reis
David B. Held [EMAIL PROTECTED] writes: | [...] | templatetypename T | Vec = std::vectorT, MyAllocT ; | | This looks cool! Is someone going to write a proposal for this before | April? Yes, I'll do. | Or does this type of change not get considered at that time? Well, the notion

[boost] Problem with boost::bind and windows api calls

2003-01-30 Thread DudeSan
Hey there! I've had some problems trying to make a function pointer to a specific windows callback function. It's defined as LRESULT CALLBACK WndProc( HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam ), however, any sore attempt I try to get the boost::bind working with it seems to fail

Re: [boost] Re: is_base_and_derived question

2003-01-30 Thread Terje Slettebø
From: Gennaro Prota [EMAIL PROTECTED] On Thu, 30 Jan 2003 11:13:23 +0100, Terje Slettebø [EMAIL PROTECTED] wrote: From: Gennaro Prota [EMAIL PROTECTED] On Tue, 28 Jan 2003 10:47:52 -0800, Andrei Alexandrescu [EMAIL PROTECTED] wrote: Peter Dimov [EMAIL PROTECTED] wrote in message

Re: [boost] Re: is_base_and_derived question

2003-01-30 Thread Terje Slettebø
From: Gennaro Prota [EMAIL PROTECTED] On Thu, 30 Jan 2003 12:33:04 +0100, Terje Slettebø [EMAIL PROTECTED] wrote: From: Andrei Alexandrescu [EMAIL PROTECTED] Even if we also define is_super_and_subtype, void is hardly a supertype of everything. Well, it could be. It's like an abstract

Re: [boost] Re: shifted_ptr w/ lock mechanism

2003-01-30 Thread Peter Dimov
From: David Abrahams [EMAIL PROTECTED] Would you indulge me and try the benchmark again with the enclosed shared_count patch applied and #undef BOOST_SP_USE_STD_ALLOCATOR? I don't really know what's going on under the covers in the SGI allocator; this is basically just the same hack I threw

[boost] Boost.Test with templated test cases... or is it bind? (was: How tomake Boost.Test work with function objects?)

2003-01-30 Thread Hubert Holin
Somewhere in the E.U., le 30/01/2003 Bonjour OK, I tried to use the following advice: In article [EMAIL PROTECTED], Rozental, Gennadiy [EMAIL PROTECTED] wrote: templatetypename T class atanh_tester { public: atanh_tester(char *) { }

[boost] Re: is_base_and_derived question

2003-01-30 Thread Rani Sharoni
Gennaro Prota [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Thu, 30 Jan 2003 12:38:36 -, John Maddock [EMAIL PROTECTED] wrote: Except it *doesn't work* ! John, unfortunately I have to turn off my computer now. I had just hacked up a version that

Re: [boost] VC6 infinite loop with function/stateless_test

2003-01-30 Thread Douglas Gregor
On Thursday 30 January 2003 05:41 am, David Abrahams wrote: The subject says it all. We should find a workaround for this or it'll screw up all vc6 testing pretty badly. When did you first start seeing this? Last night? I didn't change anything... Doug

RE: [boost] Previously GPL'd Code

2003-01-30 Thread Jeff Garland
Glenn -- Since this mail seems to have been buried in the usual wave of boost mail, I'll take a stab at it so you at least get a response - FWIW... A licensing question for everyone: Is there any problem with submitting, for possible inclusion in Boost, a library that was previously

Re: [boost] Usability of http://boost.sourceforge.net/regression-logs

2003-01-30 Thread Douglas Gregor
On Wednesday 29 January 2003 12:20 pm, David Abrahams wrote: It seems to me that while lib developers may be interested in the big table, most users, unless they care extraordinarily about portability, will want to know about individual compiler results. I wonder if we shouldn't be assembling

Re: [boost] Re: shifted_ptr w/ lock mechanism

2003-01-30 Thread David Abrahams
Peter Dimov [EMAIL PROTECTED] writes: From: David Abrahams [EMAIL PROTECTED] Would you indulge me and try the benchmark again with the enclosed shared_count patch applied and #undef BOOST_SP_USE_STD_ALLOCATOR? I don't really know what's going on under the covers in the SGI allocator; this

[boost] Re: is_base_and_derived question

2003-01-30 Thread Rani Sharoni
Rani Sharoni [EMAIL PROTECTED] wrote in message b1bd2p$i97$[EMAIL PROTECTED]">news:b1bd2p$i97$[EMAIL PROTECTED]... Gennaro Prota [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Thu, 30 Jan 2003 12:38:36 -, John Maddock [EMAIL PROTECTED] wrote:

Re: [boost] Re: is_base_and_derived question

2003-01-30 Thread David Abrahams
Gennaro Prota [EMAIL PROTECTED] writes: Actually the reason for my question is a little strange :-) I hope to explain it in understandable English: Andrej said void is hardly a supertype of everything Rewording it, it is: void is not a supertype of everything. This immediately made

Re: [boost] Re: Gmane thread view fixed

2003-01-30 Thread David Abrahams
Gennaro Prota [EMAIL PROTECTED] writes: On Thu, 30 Jan 2003 05:36:37 -0500, David Abrahams [EMAIL PROTECTED] wrote: Lars is looking for a volunteer to rewrite the software if you're interested... If it is in PHP then I don't think I'm the right person :-) He did use the word rewrite. I

Re: [boost] Previously GPL'd Code

2003-01-30 Thread David Abrahams
Jeff Garland [EMAIL PROTECTED] writes: Glenn -- Since this mail seems to have been buried in the usual wave of boost mail, I'll take a stab at it so you at least get a response - FWIW... A licensing question for everyone: Is there any problem with submitting, for possible inclusion in

Re: [boost] Re: shifted_ptr w/ lock mechanism

2003-01-30 Thread Greg Colvin
At 06:23 AM 1/30/2003, Peter Dimov wrote: From: David B. Held [EMAIL PROTECTED] Philippe A. Bouchard [EMAIL PROTECTED] wrote in message b19hhg$i2m$[EMAIL PROTECTED]">news:b19hhg$i2m$[EMAIL PROTECTED]... [...] list shifted_ptrT took 7.1966276647 seconds to reconstruct 2000 times. [...]

Re: [boost] Re: Re: is_base_and_derived question

2003-01-30 Thread Terje Slettebø
From: John Maddock [EMAIL PROTECTED] This is tested on Comeau 4.3, Intel C++ 6/7 and g++ 3.2. Except it *doesn't work* ! The problem is that your static assertion don't test anything, changing to: //typedef char TestA[is_base_and_derivedB, D::result]; // Multiple bases (error on g++)

Re: [boost] Previously GPL'd Code

2003-01-30 Thread Greg Colvin
At 08:30 AM 1/30/2003, David Abrahams wrote: Jeff Garland [EMAIL PROTECTED] writes: Glenn -- Since this mail seems to have been buried in the usual wave of boost mail, I'll take a stab at it so you at least get a response - FWIW... A licensing question for everyone: Is there any

Re: [boost] Re: is_base_and_derived question

2003-01-30 Thread Terje Sletteb
From: Rani Sharoni [EMAIL PROTECTED] Gennaro Prota [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... John, unfortunately I have to turn off my computer now. I had just hacked up a version that seems to work with gcc, but I don't want to post it before a

Re: [boost] Re: shifted_ptr w/ lock mechanism

2003-01-30 Thread David Abrahams
Greg Colvin [EMAIL PROTECTED] writes: I read a paper yesterday from the latest OOPSLA proceedings that argued that a class-specific new is almost never a win compared to a high-quality general purpose allocator like LEA. In real code, I'm sure that's true. However, for the kind of

Re: [boost] Usability ofhttp://boost.sourceforge.net/regression-logs

2003-01-30 Thread David Abrahams
Douglas Gregor [EMAIL PROTECTED] writes: On Wednesday 29 January 2003 12:20 pm, David Abrahams wrote: It seems to me that while lib developers may be interested in the big table, most users, unless they care extraordinarily about portability, will want to know about individual compiler

Re: [boost] VC6 infinite loop with function/stateless_test

2003-01-30 Thread David Abrahams
Douglas Gregor [EMAIL PROTECTED] writes: On Thursday 30 January 2003 05:41 am, David Abrahams wrote: The subject says it all. We should find a workaround for this or it'll screw up all vc6 testing pretty badly. When did you first start seeing this? Last night? Yes. I didn't change

Re: [boost] Re: shifted_ptr w/ lock mechanism

2003-01-30 Thread Peter Dimov
From: Greg Colvin [EMAIL PROTECTED] At 06:23 AM 1/30/2003, Peter Dimov wrote: To be fair, a factor of two improvement cannot just be shrugged off. But one point to keep in mind is that shared_ptrX px(new X); performs two allocations. We can optimize the count allocation until we're

Re: [boost] Re: shifted_ptr w/ lock mechanism

2003-01-30 Thread Greg Colvin
At 08:16 AM 1/30/2003, David Abrahams wrote: Peter Dimov [EMAIL PROTECTED] writes: From: David Abrahams [EMAIL PROTECTED] Would you indulge me and try the benchmark again with the enclosed shared_count patch applied and #undef BOOST_SP_USE_STD_ALLOCATOR? I don't really know what's going on

Re: [boost] Problem with boost::bind and windows api calls

2003-01-30 Thread Peter Dimov
From: DudeSan [EMAIL PROTECTED] Hey there! I've had some problems trying to make a function pointer to a specific windows callback function. It's defined as LRESULT CALLBACK WndProc( HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam ), however, any sore attempt I try to get the

Re: [boost] VC6 infinite loop with function/stateless_test

2003-01-30 Thread Douglas Gregor
On Thursday 30 January 2003 11:05 am, David Abrahams wrote: Douglas Gregor [EMAIL PROTECTED] writes: On Thursday 30 January 2003 05:41 am, David Abrahams wrote: The subject says it all. We should find a workaround for this or it'll screw up all vc6 testing pretty badly. When did you

Re: [boost] Re: shifted_ptr w/ lock mechanism

2003-01-30 Thread David Abrahams
Peter Dimov [EMAIL PROTECTED] writes: I'm not all set up to run those tests and measure the times, which is why I was hoping Philippe would check it out. There is a test in libs/smart_ptr/test called shared_ptr_alloc_test.cpp that you can use. OK. quick_allocator doesn't compile on VC6

Re: [boost] Re: BGL: external properties

2003-01-30 Thread Vladimir Prus
Jeremy Siek wrote: ghost vector vertex alternative_s ; ghost iterator_property_map vectorvertex::iterator, ghost property_mapG, vertex_index_t alternative = ... ghost ghost The problem is that I have to pass alternative_s.begin() when ghost constructig alternative, but I might want

Re: [boost] Usability of http://boost.sourceforge.net/regression-logs

2003-01-30 Thread Douglas Gregor
On Thursday 30 January 2003 11:05 am, David Abrahams wrote: [Yes, I'm beginning to sound like a broken record, but I really don't think we should ever be generating documentation directly from C++ code.] I can't see any relevance. Care to explain? I stated that _very_ poorly. I meant

[boost] Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-30 Thread David B. Held
David Abrahams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... [...] Here, r_ can't tell if foo is being destructed, or just r_, and that could be a very important difference. It usually isn't. I'm tempted to assert that it shouldn't be. When does that

Re: [boost] Re: shifted_ptr w/ lock mechanism

2003-01-30 Thread Greg Colvin
At 09:12 AM 1/30/2003, Peter Dimov wrote: From: Greg Colvin [EMAIL PROTECTED] At 06:23 AM 1/30/2003, Peter Dimov wrote: To be fair, a factor of two improvement cannot just be shrugged off. But one point to keep in mind is that shared_ptrX px(new X); performs two allocations. We can

Re: [boost] Re: shifted_ptr w/ lock mechanism

2003-01-30 Thread David Abrahams
Peter Dimov [EMAIL PROTECTED] writes: From: David Abrahams [EMAIL PROTECTED] Peter Dimov [EMAIL PROTECTED] writes: I've taken the liberty to convert the patch into detail/quick_allocator.hpp. #define BOOST_SP_USE_QUICK_ALLOCATOR to make shared_ptr use it. shared_ptr_alloc_test.cpp has

[boost] Re: is_base_and_derived question

2003-01-30 Thread Gennaro Prota
On Thu, 30 Jan 2003 16:34:44 +0200, Rani Sharoni [EMAIL PROTECTED] wrote: Gennaro Prota [EMAIL PROTECTED] wrote in message John, unfortunately I have to turn off my computer now. I had just hacked up a version that seems to work with gcc, but I don't want to post it before a better testing.

Re: [boost] Re: shifted_ptr w/ lock mechanism

2003-01-30 Thread David Abrahams
Peter Dimov [EMAIL PROTECTED] writes: From: David Abrahams [EMAIL PROTECTED] Peter Dimov [EMAIL PROTECTED] writes: There is a test in libs/smart_ptr/test called shared_ptr_alloc_test.cpp that you can use. Your test doesn't seem to terminate for me in a reasonable amount of time

Re: [boost] Re: shifted_ptr w/ lock mechanism

2003-01-30 Thread Peter Dimov
From: David Abrahams [EMAIL PROTECTED] Peter Dimov [EMAIL PROTECTED] writes: From: David Abrahams [EMAIL PROTECTED] Peter Dimov [EMAIL PROTECTED] writes: There is a test in libs/smart_ptr/test called shared_ptr_alloc_test.cpp that you can use. Your test doesn't seem to

Re: [boost] Re: shifted_ptr w/ lock mechanism

2003-01-30 Thread David Abrahams
Peter Dimov [EMAIL PROTECTED] writes: You might need to use a lower n. Here's what I get (randomly choosing g++/mingw): GNU C++ version 2.95.3-6 (mingw special) Win32 SGI standard library BOOST_HAS_THREADS: (not defined) BOOST_SP_USE_STD_ALLOCATOR: (not defined)

[boost] Re: is_base_and_derived question

2003-01-30 Thread Gennaro Prota
On Thu, 30 Jan 2003 15:13:19 +0100, Terje Slettebø [EMAIL PROTECTED] wrote: [...] Roughly speaking B is a base of D if and only if the base-specifier-list of D contains a class name for B or for a class of which B is a base. Of course you can see if that's the case by knowing the definition

Re: [boost] Re: shifted_ptr w/ lock mechanism

2003-01-30 Thread David Abrahams
Peter Dimov [EMAIL PROTECTED] writes: From: David Abrahams [EMAIL PROTECTED] Peter Dimov [EMAIL PROTECTED] writes: There is a test in libs/smart_ptr/test called shared_ptr_alloc_test.cpp that you can use. Your test doesn't seem to terminate for me in a reasonable amount of time

Re: [boost] Re: shifted_ptr w/ lock mechanism

2003-01-30 Thread David Abrahams
David Abrahams [EMAIL PROTECTED] writes: Peter Dimov [EMAIL PROTECTED] writes: You might need to use a lower n. Here's what I get (randomly choosing g++/mingw): GNU C++ version 2.95.3-6 (mingw special) Win32 Wow, that's a much bigger improvement than I saw! I wonder why? Improvements

[boost] Re: is_base_and_derived question

2003-01-30 Thread Gennaro Prota
On Thu, 30 Jan 2003 10:19:53 -0500, David Abrahams [EMAIL PROTECTED] wrote: Peter D. has effectively argued in the past that void *is* a supertype of everything (well, every object type, as opposed e.g. to function/function pointer types). Given the foregoing discussion about squares and

[boost] Re: Re: shifted_ptr w/ lock mechanism

2003-01-30 Thread Andrei Alexandrescu
Greg Colvin [EMAIL PROTECTED] wrote in message I read a paper yesterday from the latest OOPSLA proceedings that argued that a class-specific new is almost never a win compared to a high-quality general purpose allocator like LEA. Pointer? Andrei

Re: [boost] Re: is_base_and_derived question

2003-01-30 Thread Peter Dimov
From: Gennaro Prota [EMAIL PROTECTED] On Thu, 30 Jan 2003 10:19:53 -0500, David Abrahams [EMAIL PROTECTED] wrote: Peter D. has effectively argued in the past that void *is* a supertype of everything (well, every object type, as opposed e.g. to function/function pointer types). Given the

[boost] Re: Deadline for the Standard Library TechnicalReport

2003-01-30 Thread Gennaro Prota
On Wed, 29 Jan 2003 12:43:49 -0600, David B. Held [EMAIL PROTECTED] wrote: Well, I thought Herb's proposal was more or less definitive. Is that not what's likely to be presented to the committee? If we got template aliasing as you describe above, then Herb's proposal is just fine with me. But

Re: [boost] Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-30 Thread David Abrahams
David B. Held [EMAIL PROTECTED] writes: David Abrahams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... [...] Here, r_ can't tell if foo is being destructed, or just r_, and that could be a very important difference. It usually isn't. I'm tempted to

Re: [boost] Re: Re: shifted_ptr w/ lock mechanism

2003-01-30 Thread Greg Colvin
At 11:38 AM 1/30/2003, Andrei Alexandrescu wrote: Greg Colvin [EMAIL PROTECTED] wrote in message I read a paper yesterday from the latest OOPSLA proceedings that argued that a class-specific new is almost never a win compared to a high-quality general purpose allocator like LEA. Pointer?

Re: [boost] Re: shifted_ptr w/ lock mechanism

2003-01-30 Thread Peter Dimov
From: David Abrahams [EMAIL PROTECTED] Your test doesn't seem to terminate for me in a reasonable amount of time (minutes) in any configuration. That was Cygwin GCC-3.2. You made me download it. GNU C++ version 3.2 20020927 (prerelease) Cygwin GNU libstdc++ version 20020927

Re: [boost] Review Request: shifted_ptr

2003-01-30 Thread Thomas Witt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Philippe, Philippe A. Bouchard wrote: | Greeting, | | I would like to request a formal review for my library: shifted_ptr. It | consists of a smart pointer optimizing dynamic memory allocations and | deallocations on the heap, thus lower

[boost] Complex testing requirements

2003-01-30 Thread William E. Kempf
One of the many things I'm attempting to do right now is to improve the testing of Boost.Threads. I'd really like to use a more complex testing system than seems available with the current Boost tools. Or maybe I'm wrong, and it is possible. Here's a description of my requirements. * Test

[boost] Re: shifted_ptr w/ lock mechanism

2003-01-30 Thread Philippe A. Bouchard
Philippe A. Bouchard [EMAIL PROTECTED] wrote in message b1a99m$fil$[EMAIL PROTECTED]">news:b1a99m$fil$[EMAIL PROTECTED]... [...] shifted_ptr only works with shifted objects allocated with placement operator new (size_t, shifted_type const ). In theory it would be possible to displace

Re: [boost] Re: is_base_and_derived question

2003-01-30 Thread Gennaro Prota
--- Peter Dimov [EMAIL PROTECTED] wrote: From: Gennaro Prota [EMAIL PROTECTED] On Thu, 30 Jan 2003 10:19:53 -0500, David Abrahams [EMAIL PROTECTED] wrote: Peter D. has effectively argued in the past that void *is* a supertype of everything (well, every object type, as opposed e.g. to

Re: [boost] Re: is_convertible: rationale and wording

2003-01-30 Thread Terje Slettebø
From: Gennaro Prota [EMAIL PROTECTED] On Thu, 30 Jan 2003 12:20:32 -, John Maddock [EMAIL PROTECTED] wrote: Can you show, with an example, why the code used for named template arguments can't reasonably use an expression? It doesn't have access to one, only a type: the usage is take

Re: Re: [boost] Problem with boost::bind and windows api calls

2003-01-30 Thread DudeSan
No, this won't work. boost::bind returns a function object, an object with operator() defined, not a function pointer. You can't use bind() to create a function pointer. So, are there any suggestions or ideas that I could use? I'm trying to make the wndProc point at a member function. I've

Re: [boost] Usability of http://boost.sourceforge.net/regression-logs

2003-01-30 Thread Beman Dawes
At 12:20 PM 1/29/2003, David Abrahams wrote: This is a minor complaint about the wonderful automatically generated page at http://boost.sourceforge.net/regression-logs/, and perhaps also which tables we're generating and how we're generating them. When I'm interested in finding out how a library

Re: [boost] Usability of http://boost.sourceforge.net/regression-logs

2003-01-30 Thread Beman Dawes
At 11:29 AM 1/30/2003, Douglas Gregor wrote: On Thursday 30 January 2003 11:05 am, David Abrahams wrote: [Yes, I'm beginning to sound like a broken record, but I really don't think we should ever be generating documentation directly from C++ code.] I can't see any relevance. Care to

Re: [boost] Previously GPL'd Code

2003-01-30 Thread Greg Colvin
At 01:10 PM 1/30/2003, David Abrahams wrote: Greg Colvin [EMAIL PROTECTED] writes: At 08:30 AM 1/30/2003, David Abrahams wrote: Jeff Garland [EMAIL PROTECTED] writes: Glenn -- Since this mail seems to have been buried in the usual wave of boost mail, I'll take a stab at it so you at least

Re: [boost] Usability of http://boost.sourceforge.net/regression-logs

2003-01-30 Thread Beman Dawes
At 11:05 AM 1/30/2003, David Abrahams wrote: One option would be to dump the tests in some XML format, because we can easily transform that into the various HTML pages we'd want with an XSLT processor. Sourceforge has xsltproc available on its servers... Any format that can be processed

Re: [boost] VC6 infinite loop with function/stateless_test

2003-01-30 Thread Beman Dawes
At 11:19 AM 1/30/2003, Douglas Gregor wrote: On Thursday 30 January 2003 11:05 am, David Abrahams wrote: Douglas Gregor [EMAIL PROTECTED] writes: On Thursday 30 January 2003 05:41 am, David Abrahams wrote: The subject says it all. We should find a workaround for this or it'll screw up all

Re: [boost] Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-30 Thread David Abrahams
David B. Held [EMAIL PROTECTED] writes: David Abrahams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... [...] That's a very imprecise description, and exactly what I mean by not sure what you really wanted. Even though you think you have an answer now, I want

[boost] Re: Re: shifted_ptr w/ lock mechanism

2003-01-30 Thread Philippe A. Bouchard
David Abrahams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... [...] In real code, I'm sure that's true. However, for the kind of meaningless benchmark-rustling we're engaged in now, I bet the class-specific allocator works great ;-) [...] I guess it would

Re: [boost] Re: Deadline for the Standard Library TechnicalReport

2003-01-30 Thread Terje Slettebø
From: Jason House [EMAIL PROTECTED] 2. Section 2.5 (Different Declarations) rubs me the wrong way. Thr proposal does say that some people dislike this, and I guess I'm one of them. If template A,B class X; template A typedef foo XA,B; then I'm opposed to typeof(XA,B) != typeof(fooA) As

[boost] Re: Review Request: shifted_ptr

2003-01-30 Thread Philippe A. Bouchard
Thomas Witt [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Thanks for submitting. I will contact you as soon as I have found a review manager. This might take some days. BTW Volunteers, anybody? Thomas Witt Boost Review Wizard Very appreciated,

Re: [boost] Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-30 Thread Peter Dimov
From: David B. Held [EMAIL PROTECTED] ~ref_counted() { delete pCount_; } bool release(P const) { if (!--*pCount_) return true; pCount_ = 0; return false; } Doesn't release() leak pCount_?

[boost] Re: Review Request: shifted_ptr

2003-01-30 Thread Philippe A. Bouchard
David B. Held [EMAIL PROTECTED] wrote in message b19hpd$j79$[EMAIL PROTECTED]">news:b19hpd$j79$[EMAIL PROTECTED]... [...] While the generated documention is ok, it is a bit hard to read, because so much of it appears superfluous. Also, you should consider looking at other Boost

Re: [boost] Re: shifted_ptr w/ lock mechanism

2003-01-30 Thread Larry Evans
Philippe A. Bouchard wrote: [snip] I guess it would also be possible to allocate a shifted object into some specific memory page, so operator delete will be able to quickly detect weither the object is shifted or not. This way it would be possible to overload the main operator new. I think

[boost] Re: Review Request: shifted_ptr

2003-01-30 Thread Philippe A. Bouchard
Greg Colvin [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I notice that a special operator new must be used to create objects pointed to by shifted_ptr. Is this really necessaty? It prevents shifted_ptr from just being an alternative implementation of

Re: Re: [boost] Problem with boost::bind and windows api calls

2003-01-30 Thread Peter Dimov
From: DudeSan [EMAIL PROTECTED] No, this won't work. boost::bind returns a function object, an object with operator() defined, not a function pointer. You can't use bind() to create a function pointer. So, are there any suggestions or ideas that I could use? I'm trying to make the

[boost] Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-30 Thread David B. Held
David Abrahams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... David B. Held [EMAIL PROTECTED] writes: [...] smart_ptr(P p) : storage(p), ownership(p), checking(), conversion() { checking::on_init(p) } 1) storage(p) throws You missed copying P

[boost] Re: Re: shifted_ptr w/ lock mechanism

2003-01-30 Thread Philippe A. Bouchard
Larry Evans [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Philippe A. Bouchard wrote: [snip] I guess it would also be possible to allocate a shifted object into some specific memory page, so operator delete will be able to quickly detect weither the

[boost] Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-30 Thread David B. Held
Peter Dimov [EMAIL PROTECTED] wrote in message 005901c2c8a3$e5f86180$1d00a8c0@pdimov2">news:005901c2c8a3$e5f86180$1d00a8c0@pdimov2... From: David B. Held [EMAIL PROTECTED] ~ref_counted() { delete pCount_; } bool release(P const) {

Re: Re: [boost] Problem with boost::bind and windows api calls

2003-01-30 Thread William E. Kempf
Peter Dimov said: From: DudeSan [EMAIL PROTECTED] No, this won't work. boost::bind returns a function object, an object with operator() defined, not a function pointer. You can't use bind() to create a function pointer. So, are there any suggestions or ideas that I could use? I'm

Re: [boost] Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-30 Thread Beman Dawes
At 04:55 PM 1/29/2003, David B. Held wrote: David Abrahams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... [...] Then you've indeed got a problem. There were indications in some of Beman's earlier explorations that the orthogonal policy decomposition wasn't

[boost] Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-30 Thread David B. Held
Beman Dawes [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... [...] Which is the best approach is very application dependent. I never came to a firm conclusion as to which approach was better for smart pointers; both have advantages. Well, we've managed to hobble

Re: [boost] Re: Re: shifted_ptr w/ lock mechanism

2003-01-30 Thread Larry Evans
Philippe A. Bouchard wrote: [snip] Oh no, don't tell me GC_malloc was working this way ;) BTW gc_header *must* have (ip_descriptor *) ? Only if you want to collect cycles or provide some other means for accessing the arcs in the pointer graph. As a matter of fact, it may be better to do

[boost] Thread library with BOOST_HAS_PTHREAD

2003-01-30 Thread Shimshon Duvdevan
Hi all, When boost threads library is configured with pthreads, threads are created using the following code: res = pthread_create(m_thread, 0, thread_proxy, param); However, on Solaris this implies the default contentionscope of PTHREAD_SCOPE_PROCESS (vs. PTHREAD_SCOPE_SYSTEM). I didn't

Re: [boost] Previously GPL'd Code

2003-01-30 Thread Glenn G. Chappell
Jeff Garland [EMAIL PROTECTED] wrote: Since the original copyright holders are effectively changing the terms I don't see why this would present a problem -- they are certainly free to change the terms. Yes, that's my understanding. Thanks for the confirmation. I understand that there are no

Re: [boost] Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-30 Thread Beman Dawes
At 05:41 PM 1/30/2003, David B. Held wrote: Beman Dawes [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... [...] Which is the best approach is very application dependent. I never came to a firm conclusion as to which approach was better for smart pointers; both

[boost] Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-30 Thread David B. Held
Beman Dawes [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... [...] The use case I was interested in was an array being managed, and the conversion to T* also being present. Ouch! I haven't worked through the details, but I have a gut level feeling that it's

[boost] Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-30 Thread David B. Held
David B. Held [EMAIL PROTECTED] wrote in message b1c5tk$pbf$[EMAIL PROTECTED]">news:b1c5tk$pbf$[EMAIL PROTECTED]... [...] ~ref_counted() { delete pCount_; } [...] Unfortunately, my latest solution brings up a nice little gem from VC++:

Re: [boost] Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-30 Thread David Abrahams
David B. Held [EMAIL PROTECTED] writes: David Abrahams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... David B. Held [EMAIL PROTECTED] writes: [...] smart_ptr(P p) : storage(p), ownership(p), checking(), conversion() { checking::on_init(p) } 1)

Re: [boost] Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-30 Thread David Abrahams
David B. Held [EMAIL PROTECTED] writes: Beman Dawes [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... [...] Which is the best approach is very application dependent. I never came to a firm conclusion as to which approach was better for smart pointers; both have

[boost] auto_ptr/move issue

2003-01-30 Thread Howard Hinnant
On Tuesday, January 28, 2003, at 11:19 PM, Greg Colvin wrote: My problem with auto_ptr isn't so much the semantics, which have proved useful and are probably the minimum needed to solve the problem that the committee wanted solved. And it isn't so much the move as copy syntax that Howard

[boost] Re: Complex testing requirements

2003-01-30 Thread Gennadiy Rozental
Do you want this to be implemented as part of Boost.Test or Boost.Build? * Test cases/suites need to be defined in a tree hierarchy, where branches are never run if the parent test doesn't pass. This could be done in terms of Boost.Test. Not in a current version though. * These test cases may

[boost] Re: Boost.Test with templated test cases... or is itbind?(was:Howto make Boost.Test work with function objects?)

2003-01-30 Thread Gennadiy Rozental
I guess it would help if the syntax for all four possibilities (normal function, templated function, normal function object templated function object) made it into the Boost.Test documentation. Syntax is basically the same for all simple (not parameterized tests) cases. Though I admit

Re: [boost] auto_ptr/move issue

2003-01-30 Thread Greg Colvin
At 06:24 PM 1/30/2003, Howard Hinnant wrote: On Tuesday, January 28, 2003, at 11:19 PM, Greg Colvin wrote: My problem with auto_ptr isn't so much the semantics, which have proved useful and are probably the minimum needed to solve the problem that the committee wanted solved. And it isn't so

Re: [boost] auto_ptr/move issue

2003-01-30 Thread Howard Hinnant
On Thursday, January 30, 2003, at 08:53 PM, Greg Colvin wrote: Sigh... To be clear, I'll be happy to see a better syntax in the next standard -- auto_ptr was the best we could do with the syntax we had, but ... Agreed on all points. And glad to have your continued support for a better

  1   2   >