[boost] Re: 1.30.0->1.30.2: no more thread support for Linux?

2003-08-26 Thread David Abrahams
Ross Smith <[EMAIL PROTECTED]> writes: > David Abrahams wrote: >> "Neal D. Becker" <[EMAIL PROTECTED]> writes: >>> >>> You mean I can't just run bjam with no options and get the libs >>> built with thread support? I need to add a command-line option? >> The libraries that require thread support w

[boost] Re: Re: Re: Re: Re: what happened to allocators in boost?

2003-08-26 Thread Andreas Huber
Peter Dimov wrote: [snip] >> I see your point but what is the alternative? Forcing people to >> replace global new/delete? > > In a word, yes. Although replacing global new/delete is forced by the > system allocator being not up to the task and not by us. > > I understand that for some applications

[boost] Re: 1.30.0->1.30.2: no more thread support for Linux?

2003-08-26 Thread Ross Smith
David Abrahams wrote: "Neal D. Becker" <[EMAIL PROTECTED]> writes: You mean I can't just run bjam with no options and get the libs built with thread support? I need to add a command-line option? The libraries that require thread support will be built with thread support. The others will not, unl

RE: [boost] Re: [uBlas] Any Performance Resulst Data with uBlas?

2003-08-26 Thread Hurd, Matthew
> From: David Abrahams [mailto:[EMAIL PROTECTED] > Subject: [boost] Re: [uBlas] Any Performance Resulst Data with uBlas? > > > "Patrick Kowalzick" <[EMAIL PROTECTED]> writes: > > > Hi Matthew, > > > > I like these statistics. Nice graphs. > > > > Did you test the block_prod compared to normal

Re: [boost] Re: Re: Re: what happened to allocators in boost?

2003-08-26 Thread E. Gladyshev
--- Peter Dimov <[EMAIL PROTECTED]> wrote: > E. Gladyshev wrote: > > --- Peter Dimov <[EMAIL PROTECTED]> wrote: > > > >> unless there are very solid reasons for the allocator parameter. ;-) > > > > I agree, but the problme is that I don't know whether I have a solid > reason or not. > > I have to

Re: [boost] Re: Re: Re: what happened to allocators in boost?

2003-08-26 Thread Peter Dimov
E. Gladyshev wrote: > --- Peter Dimov <[EMAIL PROTECTED]> wrote: > >> unless there are very solid reasons for the allocator parameter. ;-) > > I agree, but the problme is that I don't know whether I have a solid reason or not. > I have to ship my class to someone else. She might have a solid reason

[boost] Re: path::leaf()

2003-08-26 Thread David Abrahams
Beman Dawes <[EMAIL PROTECTED]> writes: > At 10:08 PM 8/25/2003, David Abrahams wrote: > >David Abrahams <[EMAIL PROTECTED]> writes: > > > >> > What about: > >> > > >> > assert( p.branch_path().empty() ); > >> > > >> > Isn't that closer to what you are trying to express? > >> > >> I

Re: [boost] Re: Spirit question...

2003-08-26 Thread Chris Cooney
Jan, That was my problem - thank you. Chris. - Original Message - From: "Jan Langer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 26, 2003 11:29 AM Subject: [boost] Re: Spirit question... > Chris Cooney wrote: > > I've been utilizing some of the other boost projec

Re: [boost] Re: Re: Re: what happened to allocators in boost?

2003-08-26 Thread E. Gladyshev
--- Peter Dimov <[EMAIL PROTECTED]> wrote: [...] > template struct X > { > typedef typename A::value_type T; > > static T * create(A & a) > { > T * p = a.allocate(1); > > try > { > new(p) T; > } > catch(...) > { >

[boost] Re: enable_if formal review ?

2003-08-26 Thread David Abrahams
Thomas Witt <[EMAIL PROTECTED]> writes: > David Abrahams wrote: > >> Thomas Witt <[EMAIL PROTECTED]> writes: >>> >>>- - A full boost-conformant implementation is available in the sandbox >> Or in Boost CVS, I hope... since if it's already in use it may >> already be there. > > I assume that in gen

[boost] Re: memcpy_copyable<> and memcpy_moveable<> type traits

2003-08-26 Thread Pavel Vozenilek
"Edward Diener" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] ... > But even for a POD type such as this, copying would lead to > errors if the char * data were dynamically allocated since a double delete > would probably be done. > Containers aware of memcpy_moveable can detect this

Re: [boost] Re: path::leaf()

2003-08-26 Thread Beman Dawes
At 10:08 PM 8/25/2003, David Abrahams wrote: >David Abrahams <[EMAIL PROTECTED]> writes: > >> > What about: >> > >> > assert( p.branch_path().empty() ); >> > >> > Isn't that closer to what you are trying to express? >> >> I guess so. I didn't see branch_path(). > >BTW, it would feel much more

Re: [boost] Re: path::leaf()

2003-08-26 Thread Beman Dawes
At 09:48 PM 8/25/2003, David Abrahams wrote: >"Rainer Deyke" <[EMAIL PROTECTED]> writes: > >> It is my understanding that paths are implemented as >> std::vector or something similar, where the individual >> strings can contain slashes if the underlying filesystem allows it. >> It would be a shame

[boost] Re: memcpy_copyable<> and memcpy_moveable<> type traits

2003-08-26 Thread Pavel Vozenilek
"Edward Diener" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] ... > But even for a POD type such as this, copying would lead to > errors if the char * data were dynamically allocated since a double delete > would probably be done. > Containers aware of memcpy_moveable can detect this

[boost] Re: Re: Re: Re: what happened to allocators in boost?

2003-08-26 Thread Andreas Huber
Peter Dimov wrote: > Andreas Huber wrote: >> Peter Dimov wrote: >>> The usual approach is to borrow an entry from the 2*N heap and split >>> it in two when the N heap is empty. [snip] >> >> Which brings back non-determinism, as the 2*N heap could be full also >> and thus be borrowing from 4*N alrea

Re: [boost] Re: Re: Re: Re: what happened to allocators in boost?

2003-08-26 Thread Peter Dimov
Andreas Huber wrote: > [snip] >>> However, for a certain class of systems one almost never can avoid >>> customization, no matter how ingenious the platform is. >> >> This may well be true, but I'm not convinced that platform-specific >> customizations (an implementation detail) absolutely need to

[boost] Re: Spirit question...

2003-08-26 Thread Jan Langer
Chris Cooney wrote: I've been utilizing some of the other boost projects for awhile now but am new to the spirit framework and may ask some dumb questions...so, sorry in advance. i tried it today for the first time. and i think its really nice. I'm wondering why the var_delm rule won't work when p

[boost] Re: Re: memcpy_copyable<> and memcpy_moveable<> type traits

2003-08-26 Thread Pavel Vozenilek
"John Maddock" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > He needs to take a look at the has_trivial_* traits: > > has_trivial_assign is roughly equivalent to memcpy_copyable > > I guess there is no equivalent to memcpy_moveable: but it looks rather > dangerous, > It looks dange

[boost] Spirit question...

2003-08-26 Thread Chris Cooney
Hello,   I've been utilizing some of the other boost projects for awhile now but am new to the spirit framework and may ask some dumb questions...so, sorry in advance.   I'm wondering why the var_delm rule won't work when parsed:   rule<> var_delm = +anychar_p; rule<> var_type = str_p("some_l

Re: [boost] Re: Re: Re: what happened to allocators in boost?

2003-08-26 Thread Peter Dimov
Douglas Gregor wrote: > > There's no reason shared_ptr couldn't support a constructor that > takes an allocator as an argument. "Minimal but complete". You can already achieve this functionality with the current interface. ___ Unsubscribe & other change

Re: [boost] Re: Re: Re: what happened to allocators in boost?

2003-08-26 Thread Peter Dimov
Andreas Huber wrote: > Peter Dimov wrote: >> The usual approach is to borrow an entry from the 2*N heap and split >> it in two when the N heap is empty. [snip] > > Which brings back non-determinism, as the 2*N heap could be full also > and thus be borrowing from 4*N already. You can of course guara

[boost] Re: Re: Re: Re: what happened to allocators in boost?

2003-08-26 Thread Andreas Huber
[snip] >> However, for a certain class of systems one almost never can avoid >> customization, no matter how ingenious the platform is. > > This may well be true, but I'm not convinced that platform-specific > customizations (an implementation detail) absolutely need to be > supported by a portable

Re: [boost] Re: Re: Re: what happened to allocators in boost?

2003-08-26 Thread Peter Dimov
E. Gladyshev wrote: > I am using STL and trying to use boost in my daily > development. What can I do to implement consistent classes in terms > of memory management. For example, if I need to implement a class A > that has a container and pointer to a data type. I have two options: > > template<

[boost] Re: what happened to allocators in boost?

2003-08-26 Thread David Abrahams
"Peter Dimov" <[EMAIL PROTECTED]> writes: > E. Gladyshev wrote: >> --- Gregory Colvin <[EMAIL PROTECTED]> wrote: >>> For shared_ptr the count is allocated by the following line in the >>> shared_count >>> constructor: >>> >>> new sp_counted_base_impl(p, d); >>> >>> So it might be possible to m

[boost] Re: Re: Re: what happened to allocators in boost?

2003-08-26 Thread Andreas Huber
Peter Dimov wrote: > Andreas Huber wrote: >> [snip] >>> So far my experience indicates that people only bother with >>> allocators when std::allocator is inadequate, i.e. slow. >> >> ... or non-deterministic. Using such an allocator in a hard real-time >> system is simply not an option. >> AFAIK, a

Re: [boost] Re: Re: Re: what happened to allocators in boost?

2003-08-26 Thread Gregory Colvin
On Tuesday, Aug 26, 2003, at 10:41 America/Denver, E. Gladyshev wrote: --- Gregory Colvin <[EMAIL PROTECTED]> wrote: For shared_ptr the count is allocated by the following line in the shared_count constructor: new sp_counted_base_impl(p, d); So it might be possible to make the allocation custo

Re: [boost] Re: enable_if formal review ?

2003-08-26 Thread Thomas Witt
David Abrahams wrote: Thomas Witt <[EMAIL PROTECTED]> writes: - - A full boost-conformant implementation is available in the sandbox Or in Boost CVS, I hope... since if it's already in use it may already be there. I assume that in general the new component would have a new place and add some tw

Re: [boost] Re: Re: Re: what happened to allocators in boost?

2003-08-26 Thread Douglas Gregor
On Tuesday 26 August 2003 01:23 pm, Peter Dimov wrote: > Leaving aside the issue of whether specializing std::allocator is > a good idea: > > shared_ptr< MyClass, MyAllocator > s; > > note that you now wouldn't be able to pass s to a function that expects > shared_ptr since the type is not the same

Re: [boost] Re: Re: Re: what happened to allocators in boost?

2003-08-26 Thread Peter Dimov
E. Gladyshev wrote: > --- Gregory Colvin <[EMAIL PROTECTED]> wrote: >> For shared_ptr the count is allocated by the following line in the >> shared_count >> constructor: >> >> new sp_counted_base_impl(p, d); >> >> So it might be possible to make the allocation customizable by >> specializing >>

[boost] Re: enable_if formal review ?

2003-08-26 Thread David Abrahams
Thomas Witt <[EMAIL PROTECTED]> writes: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > Jaako, > > Jaakko Jarvi wrote: > > | Hi Boosters, > | > | We submitted enable_if for formal review in July. The library does not > | seem to be on the review queue, > > It is in fact in the queue, only

Re: [boost] Re: memcpy_copyable<> and memcpy_moveable<> type traits

2003-08-26 Thread Peter Dimov
David Abrahams wrote: > "Peter Dimov" <[EMAIL PROTECTED]> writes: > >>> I guess there is no equivalent to memcpy_moveable: but it looks >>> rather dangerous, what state is the original object left in >>> afterwards etc? >> >> None. There is no original object after the move, only raw storage. > > .

Re: [boost] Re: Re: Re: what happened to allocators in boost?

2003-08-26 Thread E. Gladyshev
--- Gregory Colvin <[EMAIL PROTECTED]> wrote: > For shared_ptr the count is allocated by the following line in the > shared_count > constructor: > > new sp_counted_base_impl(p, d); > > So it might be possible to make the allocation customizable by > specializing > sp_counted_base_impl. I t

[boost] Re: [uBlas] Any Performance Resulst Data with uBlas?

2003-08-26 Thread David Abrahams
"Patrick Kowalzick" <[EMAIL PROTECTED]> writes: > Hi Matthew, > > I like these statistics. Nice graphs. > > Did you test the block_prod compared to normal prod as well ? This would be > interessting compared to ATLAS as well. It's very hard to read, IMO. It's not clear what the lines are referri

Re: [boost] Re: Re: Re: what happened to allocators in boost?

2003-08-26 Thread E. Gladyshev
--- Peter Dimov <[EMAIL PROTECTED]> wrote: > E. Gladyshev wrote: > > > > I guess my question is that, is boost redefining the > > memory management concepts that have been established by STL? > > Yes and no. The STL uses allocators for containers. Most non-containers do > not have an allocator pa

[boost] Re: 1.30.0->1.30.2: no more thread support for Linux?

2003-08-26 Thread David Abrahams
"Neal D. Becker" <[EMAIL PROTECTED]> writes: > On Saturday 23 August 2003 07:18 am, John Maddock wrote: >> > One more thing: what exactly can go wrong with 1.30.0 if >> > -pthread isn't used? Is it boost specific or a general thing >> > (e.g. issues w/ respect to libstdc++)? >> >> A general thing

[boost] Re: memcpy_copyable<> and memcpy_moveable<> type traits

2003-08-26 Thread David Abrahams
"Peter Dimov" <[EMAIL PROTECTED]> writes: >> I guess there is no equivalent to memcpy_moveable: but it looks rather >> dangerous, what state is the original object left in afterwards etc? > > None. There is no original object after the move, only raw storage. ...which is a different meaning from

Re: [boost] Re: Re: Re: what happened to allocators in boost?

2003-08-26 Thread Gregory Colvin
For shared_ptr the count is allocated by the following line in the shared_count constructor: new sp_counted_base_impl(p, d); So it might be possible to make the allocation customizable by specializing sp_counted_base_impl. ___ Unsubscribe & other

[boost] Re: [bind] result type deduction/access?

2003-08-26 Thread Daniel Frey
Mat Marcus wrote: It is not uncommon to use boost::function to hold on to the result of boost::bind. Will that work for you? Wrote it, compiled it and it worked immediately. Thanks very much! :) Regards, Daniel -- Daniel Frey aixigo AG - financial training, research and technology Schloß-Rahe-St

[boost] Re: Boost.Regex compilation errors with BCB5

2003-08-26 Thread Marco Oman
On Mon, 25 Aug 2003 14:31:07 +1000, Chris Trengove <[EMAIL PROTECTED]> wrote: At the moment, Boost.Regex has an incompatibility with the VCL headers when compiling with Borland C++ 5.5. Simply having #include #include generates a large number of errors of the type. [C++ Error] cregex.hpp(91)

Re: [boost] [bind] result type deduction/access?

2003-08-26 Thread Mat Marcus
It is not uncommon to use boost::function to hold on to the result of boost::bind. Will that work for you? - Mat --On Tuesday, August 26, 2003 4:17 PM +0200 Daniel Frey <[EMAIL PROTECTED]> wrote: In my current project, there are a lot of code fragments that read like this: result->insert( "pos

[boost] Re: [uBlas] Any Performance Resulst Data with uBlas?

2003-08-26 Thread Patrick Kowalzick
Hi Matthew, I like these statistics. Nice graphs. Did you test the block_prod compared to normal prod as well ? This would be interessting compared to ATLAS as well. Regards, Patrick "Hurd, Matthew" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > From: Firingme [mailto:[EMAIL PR

[boost] [bind] result type deduction/access?

2003-08-26 Thread Daniel Frey
In my current project, there are a lot of code fragments that read like this: result->insert( "positions", positions_.begin(), positions_.end(), bind( &Position::serialize, _1, boost::cref( locale ) ) ); T

Re: [boost] enable_if formal review ?

2003-08-26 Thread Thomas Witt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jaako, Jaakko Jarvi wrote: | Hi Boosters, | | We submitted enable_if for formal review in July. The library does not | seem to be on the review queue, It is in fact in the queue, only that the queue is only current in CVS. | and maybe it is not worth

Re: [boost] 1.30.0->1.30.2: no more thread support for Linux?

2003-08-26 Thread Karel Gardas
On Sat, 23 Aug 2003, John Maddock wrote: > > > One more thing: what exactly can go wrong with 1.30.0 if > > -pthread isn't used? Is it boost specific or a general thing > > (e.g. issues w/ respect to libstdc++)? > > A general thing - without this then: > > Your std lib is not thread safe. > Your

Re: [boost] Re: Re: Re: what happened to allocators in boost?

2003-08-26 Thread Peter Dimov
Andreas Huber wrote: > > I know, I just mentioned this because Peter seems to suggest that the > need for memory management customization is rare if the compiler > folks did their job right. But it is. Compiler folks not doing their job is the primary motivation for custom memory management. The C

RE: [boost] Re: Problem on the CVS version of the top web page

2003-08-26 Thread Michael van der Westhuizen
We do a regular merge of branch changes into HEAD in our source at work. So far I've had a sum-total of 1 conflict... Things to remember when merging: * where possible ignore whitespace * suppress keyword expansion * keep your sync tags well documented I based our process at work on the fo

[boost] [Boost Integer Library] compilation patch for NetBSD

2003-08-26 Thread Angus Leeming
Dear all, attached is a patch to integer_traits.hpp, enabling it to be compiled under NetBSD. Kind regards, Angus Index: boost/integer_traits.hpp === RCS file: /usr/local/lyx/cvsroot/lyx-devel/boost/boost/integer_traits.hpp,v retrie

Re: [boost] 1.30.0->1.30.2: no more thread support for Linux?

2003-08-26 Thread Neal D. Becker
On Saturday 23 August 2003 07:18 am, John Maddock wrote: > > One more thing: what exactly can go wrong with 1.30.0 if > > -pthread isn't used? Is it boost specific or a general thing > > (e.g. issues w/ respect to libstdc++)? > > A general thing - without this then: > > Your std lib is not thread

Re: [boost] Re: Re: what happened to allocators in boost?

2003-08-26 Thread Peter Dimov
Andreas Huber wrote: > [snip] >> So far my experience indicates that people only bother with >> allocators when std::allocator is inadequate, i.e. slow. > > ... or non-deterministic. Using such an allocator in a hard real-time > system is simply not an option. > AFAIK, a deterministic allocator mus

Re: [boost] Re: Re: Re: what happened to allocators in boost?

2003-08-26 Thread Peter Dimov
E. Gladyshev wrote: > > I guess my question is that, is boost redefining the > memory management concepts that have been established by STL? Yes and no. The STL uses allocators for containers. Most non-containers do not have an allocator parameter, although many standard classes do allocate memory

Re: [boost] Re: memcpy_copyable<> and memcpy_moveable<> type traits

2003-08-26 Thread Peter Dimov
John Maddock wrote: >>> Thats my point - you may flag some types as safely moveable and then >>> use >>> this knowledge in algorithms. User has the responsibility to do the >>> decision. >> >> Extremely dangerous and error prone. I can't even imagine a non-POD >> type where flagging it for memcpy_

[boost] Re: memcpy_copyable<> and memcpy_moveable<> type traits

2003-08-26 Thread Edward Diener
Pavel Vozenilek wrote: > "Edward Diener" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Extremely dangerous and error prone. I can't even imagine a non-POD >> type where flagging it for memcpy_copyable and memcpy_moveable can >> be right. > Can >> you give an example ? >> > It is

Re: [boost] Boost.Regex compilation errors with BCB5

2003-08-26 Thread John Maddock
> At the moment, Boost.Regex has an incompatibility with the VCL headers when > compiling with Borland C++ 5.5. Simply having > > #include > #include > > generates a large number of errors of the type. > > [C++ Error] cregex.hpp(91): E2015 Ambiguity between '_fastcall operator > |(int,const Varia

Re: [boost] Boost.Regex compiler warnings

2003-08-26 Thread John Maddock
> Compilation of Boost.Regex using Borland C++ 5.5 currently gives a bunch of > "previous options and warnings not restored" messages. The culprit is > boost/regex/config/cstring.hpp where the lines Fixes are in cvs now. Thanks for reporting this. John.

Re: [boost] Re: memcpy_copyable<> and memcpy_moveable<> type traits

2003-08-26 Thread John Maddock
> see boost::is_POD. And has_trivial_copy has_trivial_assign has_trivial_destruct etc John. ___ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Re: [boost] Re: memcpy_copyable<> and memcpy_moveable<> type traits

2003-08-26 Thread John Maddock
>> > > Thats my point - you may flag some types as safely moveable and then > > use > > this knowledge in algorithms. User has the responsibility to do the > > decision. > > Extremely dangerous and error prone. I can't even imagine a non-POD type > where flagging it for memcpy_copyable and memcpy_m

RE: [boost] [uBlas] Any Performance Resulst Data with uBlas?

2003-08-26 Thread Hurd, Matthew
> From: Firingme [mailto:[EMAIL PROTECTED] > I'm a newbie to uBlas , but have used MTL for a long time. > Before I learned MTL, I've founded MTL's performance result > graph data on the following URL: > > http://www.osl.iu.edu/research/mtl/performance.php3 > > Now, is there any performance re

[boost] Re: memcpy_copyable<> and memcpy_moveable<> type traits

2003-08-26 Thread Pavel Vozenilek
"Edward Diener" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Extremely dangerous and error prone. I can't even imagine a non-POD type > where flagging it for memcpy_copyable and memcpy_moveable can be right. Can > you give an example ? > It is error prone but many other constructs

[boost] [uBlas] Any Performance Resulst Data with uBlas?

2003-08-26 Thread Firingme
I'm a newbie to uBlas , but have used MTL for a long time. Before I learned MTL, I've founded MTL's performance result graph data on the following URL: http://www.osl.iu.edu/research/mtl/performance.php3 Now, is there any performance result data about uBlas ? __

[boost] Re: path::leaf()

2003-08-26 Thread David Abrahams
David Abrahams <[EMAIL PROTECTED]> writes: > > What about: > > > > assert( p.branch_path().empty() ); > > > > Isn't that closer to what you are trying to express? > > I guess so. I didn't see branch_path(). BTW, it would feel much more natural to me if it were path root() const;

[boost] Re: path::leaf()

2003-08-26 Thread David Abrahams
Beman Dawes <[EMAIL PROTECTED]> writes: > At 03:55 PM 8/21/2003, David Abrahams wrote: > > >Beman Dawes <[EMAIL PROTECTED]> writes: > > > >> At 08:31 PM 8/19/2003, David Abrahams wrote: > >> > > >> >It surprised me a bit that leaf returns a string instead of a path. > >> > >> The rule isn

[boost] Re: path::leaf()

2003-08-26 Thread David Abrahams
"Rainer Deyke" <[EMAIL PROTECTED]> writes: > David Abrahams wrote: >> "Rainer Deyke" <[EMAIL PROTECTED]> writes: >> >>> David Abrahams wrote: A single component of a path is still a path, and it shouldn't devolve into a string. >>> >>> I disagree. While a path with just one component ca

[boost] Re: memcpy_copyable<> and memcpy_moveable<> type traits

2003-08-26 Thread Edward Diener
Pavel Vozenilek wrote: > "David Abrahams" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > ... >> >> I don't believe you can use memcpy to move any non-POD types >> portably, >> i.e. without special knowledge of the compiler. >> > Thats my point - you may flag some types as safely mo

Re: [boost] Re: path::leaf()

2003-08-26 Thread Beman Dawes
At 03:55 PM 8/21/2003, David Abrahams wrote: >Beman Dawes <[EMAIL PROTECTED]> writes: > >> At 08:31 PM 8/19/2003, David Abrahams wrote: >> > >> >It surprised me a bit that leaf returns a string instead of a path. >> >> The rule isn't entirely obvious. If a decomposition function can >> possibly