[boost] Re: trouble with generating html compiler status pages

2003-09-02 Thread Misha Bergal
Matthew Towler <[EMAIL PROTECTED]> writes: > I have been attempting to build boost 1.30.2 for a number of platforms. > > I also wish to generate the html testsuite output for several reasons We use python script to run our tests on Win32 - I can send it to you, although it has some very specific

Re: [boost] Re: Re: Re: Re: Optional, tie, and iterator_adaptor

2003-09-02 Thread Joel de Guzman
Fernando Cacciola <[EMAIL PROTECTED]> wrote: > Point taken. > There's no need to argue anymore. > I guess significantly more feedback will weight the balance. > > Thanks for all your comments! > It might look the other way around but they were very helpful. Bottom line is, and most importantly,

[boost] Re: Re: Re: Re: Optional, tie, and iterator_adaptor

2003-09-02 Thread Fernando Cacciola
"Joel de Guzman" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > Fernando Cacciola <[EMAIL PROTECTED]> wrote: > > > You did sell the idea that it can be a union, but I held to the idea that > > it can just as well be considered as *REALLY REALLY REALLY* > > nothing else but a co

Re: [boost] Re: Re: Re: Optional, tie, and iterator_adaptor

2003-09-02 Thread Joel de Guzman
Fernando Cacciola <[EMAIL PROTECTED]> wrote: > You did sell the idea that it can be a union, but I held to the idea that > it can just as well be considered as *REALLY REALLY REALLY* > nothing else but a container that has a T or is empty. > > I agree there is nothing wrong with the union model,

RE: [boost] Re: Re: Re: Optional, tie, and iterator_adaptor

2003-09-02 Thread Hurd, Matthew
> From: Fernando Cacciola [mailto:[EMAIL PROTECTED] > > Mat Marcus <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > > Those who answer no to the above question may > > prefer to write code that uniformly handles T and optional. > > > I doubt such uniformity can be implemented

Re: [boost] Re: Re: Re: Optional, tie, and iterator_adaptor

2003-09-02 Thread Mat Marcus
--On Tuesday, September 02, 2003 10:48 PM -0300 Fernando Cacciola <[EMAIL PROTECTED]> wrote: [snip] For this reason, and for the fact that I have some upcoming deadlines at work, I'll summarize what I see and where I stand now, then I'll step back a bit for a while. I hope you come back later

[boost] Re: Re: Re: Optional, tie, and iterator_adaptor

2003-09-02 Thread Fernando Cacciola
Mat Marcus <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > [snip] > Here's a question that tries to get to the crux of the pointer-like > interface matter. Should T* and optional both be models of a > pointer-like syntactic concept? > pointers, iterators and optional are indeed mode

[boost] Re: Re: Re: Optional, tie, and iterator_adaptor

2003-09-02 Thread Fernando Cacciola
Joel de Guzman <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Mat Marcus <[EMAIL PROTECTED]> wrote: > > --On Monday, September 01, 2003 3:37 PM -0300 Fernando Cacciola > > <[EMAIL PROTECTED]> wrote: > > > >> Joel de Guzman <[EMAIL PROTECTED]> wrote in message > >>> One can think of a

[boost] Re: Re: Re: Optional, tie, and iterator_adaptor

2003-09-02 Thread Fernando Cacciola
Mat Marcus <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --On Monday, September 01, 2003 9:52 PM -0400 Brian McNamara > <[EMAIL PROTECTED]> wrote: [snip] > > > As a final aside, I think much of this thread is degenerating into > > Parkinson's Bicycle Shed[*], with respect to "is it

[boost] Re: CVS main trunk regression test failure

2003-09-02 Thread Misha Bergal
Daniel Frey <[EMAIL PROTECTED]> writes: > Sorry, my fault. tie_example.cpp no longer exists, as 'tie' no longer > lives in 'utility'. Can you please remove the reference from the > test-file? Sure. > A last question to the > build-wizards: Would it make sense to make the build system continue >

[boost] Lambda conflicts

2003-09-02 Thread Hurd, Matthew
Lambda's v cool but it tends not to play fair when promoted to global scope and lambda::_1 just doesn't look right ;-) Would be nice to solve the conflicts with boost::bind and lambda::bind. Also there is, at least, a conflict with _1 between spirit and lambda that has bitten me, perhaps others...

[boost] [type traits] type_with_alignment/alignment_of on GCC

2003-09-02 Thread Douglas Gregor
I see that there is some special code in type_with_alignment for Borland C++, partly because it is broken and partly because we can do a better job using compiler-specific features. Why not do the same for other compilers? For instance, on GCC: template struct alignment_of { BOOST_STATIC_CO

[boost] boost::date_time::time_resolutions

2003-09-02 Thread David Abrahams
Where is this documented, and what is "nano" in the table entry below? static boost::date_time::time_resolutions resolution() Describes the resolution capability of the time_duration class. time_duration::resolution() --> nano -- Dave Abrahams Boost Consulting www.boost-c

[boost] [date_time] time_duration

2003-09-02 Thread David Abrahams
The "fractional seconds" concept is undocumented. My guess it's something like: x.fractional_seconds() == x.ticks() % seconds(1).ticks() This needs to be nailed down. Also, the assymetry of those nice Construction by Count factories down to nanosec(x) with the accessors which only includ

Re: [boost] Re: optional/type_with_alignment.hpp vs. metrowerks 8.3PPC CFM

2003-09-02 Thread Douglas Gregor
On Tuesday 02 September 2003 05:01 pm, David Abrahams wrote: > "Peter Dimov" <[EMAIL PROTECTED]> writes: > > Maybe adding struct { double x; } would be enough? > > I think it would be safer to add struct { double T; } for each T in > the list of types, just in case. I agree. I've checked in the fo

[boost] [date_time] time_duration division

2003-09-02 Thread David Abrahams
Suppose I want to know how many minutes there are in a particular duration d? My intuition says: d / minutes(1) But there's no such operator. Why not? -- Dave Abrahams Boost Consulting www.boost-consulting.com ___ Unsubscribe & other chan

Re: [boost] Re: Boost memory management guidelines

2003-09-02 Thread E. Gladyshev
--- Gregory Colvin <[EMAIL PROTECTED]> wrote: [...] > > T* _p; > > Leading underscores are a no-no. I didn't see it in boost naming convention docs. Have I missed it? Some STL implmentations use leading underscores for members. Eugene __ Do you Yahoo!? Ya

RE: [boost] date_time naming

2003-09-02 Thread Hurd, Matthew
> From: David Abrahams [mailto:[EMAIL PROTECTED] > Subject: [boost] date_time naming > > I'm just getting started with the date_time library, and I > think I'm gonna like it. I have some quibbles with the > naming choices though (shocking! me of all people!) For > example, why is the nested

Re: [boost] Re: Boost memory management guidelines

2003-09-02 Thread E. Gladyshev
--- Gregory Colvin <[EMAIL PROTECTED]> wrote: [...] > > 3. If your class is using STL containers, use boost::memory::allocator > >adapter (see bellow). > > Why not just use std::allocator? Because boost::memory::allocator will use UserAllocator under the covers. So if you customized UserAll

Re: [boost] Re: variant questions

2003-09-02 Thread Douglas Gregor
On Tuesday 02 September 2003 04:58 pm, Misha Bergal wrote: > Douglas Gregor <[EMAIL PROTECTED]> writes: > > http://www.cs.rpi.edu/~gregod/boost/tools/boostbook/doc/html/ > > > > You can build local copies of the documentation with BBv2 once you've > > read it > > Thanks. It worked. We will be publi

Re: [boost] Re: Boost memory management guidelines

2003-09-02 Thread Peter Dimov
David Abrahams wrote: > Gregory Colvin <[EMAIL PROTECTED]> writes: > >>> Also, if shared_ptr only needs to allocate at construction time (I'm >>> not sure of this) we can avoid storing the allocator at all. >> >> Then how to deallocate? > > Using the custom deleter? The deleter takes care of the p

Re: [boost] Re: Boost memory management guidelines

2003-09-02 Thread Gregory Colvin
On Tuesday, Sep 2, 2003, at 15:00 America/Denver, David Abrahams wrote: Gregory Colvin <[EMAIL PROTECTED]> writes: Also, if shared_ptr only needs to allocate at construction time (I'm not sure of this) we can avoid storing the allocator at all. Then how to deallocate? Using the custom deleter? Whi

[boost] Re: CVS main trunk regression test failure

2003-09-02 Thread Daniel Frey
Misha Bergal wrote: The metacomm regression tests run failed last night because of the following bjam failure: boost-test(RUN) "iterators" : "libs\multi_array\test\iterators.cpp" boost-test(RUN) "compare" : "libs\multi_array\test\compare.cpp" boost-test(RUN) "access" : "libs\multi_array\test\access

Re: [boost] optional/type_with_alignment.hpp vs. metrowerks8.3 PPC CFM

2003-09-02 Thread Mat Marcus
--On Tuesday, September 02, 2003 3:32 PM -0400 Douglas Paul Gregor <[EMAIL PROTECTED]> wrote: On Tue, 2 Sep 2003, Mat Marcus wrote: --On Tuesday, September 02, 2003 2:00 PM -0400 Douglas Gregor <[EMAIL PROTECTED]> wrote: > I suspect they are both '4', but that leaves me even more confused > as

[boost] Re: circular_buffer ver. 3.3

2003-09-02 Thread David Abrahams
"Pavel Vozenilek" <[EMAIL PROTECTED]> writes: >> > 14. Btw, isn't cb_iterator::operator[]() added by mistake? I have >> > never seen such an operation for iterator. No, iterators do have >> > this operator. >> > Oops, newer used before :-o Is there some reason you're defining your own iterators

[boost] Re: optional/type_with_alignment.hpp vs. metrowerks 8.3 PPCCFM

2003-09-02 Thread David Abrahams
"Peter Dimov" <[EMAIL PROTECTED]> writes: > Douglas Paul Gregor wrote: > > [...] > >>> struct A { >>> double d; >>> int i; >>> }; > > [...] > >> Are there any other crazy rules like this that you know of? We could >> just add "struct A" from above to the list of types, or if there is a >> CodeWarr

Re: [boost] Re: Boost memory management guidelines

2003-09-02 Thread Gregory Colvin
On Tuesday, Sep 2, 2003, at 13:18 America/Denver, E. Gladyshev wrote: --- Gregory Colvin <[EMAIL PROTECTED]> wrote: Yep. I still think UserAllocator is a good default, and that where it doesn't suffice there is some value to playing nicely with STL. So even when we come up with some beautiful new

[boost] Re: variant questions

2003-09-02 Thread Misha Bergal
Douglas Gregor <[EMAIL PROTECTED]> writes: > http://www.cs.rpi.edu/~gregod/boost/tools/boostbook/doc/html/ > > You can build local copies of the documentation with BBv2 once you've read it Thanks. It worked. We will be publishing HTML docs starting with this night's run. -- Misha Bergal MetaCo

[boost] Re: Boost memory management guidelines

2003-09-02 Thread David Abrahams
Gregory Colvin <[EMAIL PROTECTED]> writes: >> Also, if shared_ptr only needs to allocate at construction time (I'm >> not sure of this) we can avoid storing the allocator at all. > > Then how to deallocate? Using the custom deleter? >>> I'm reeling from the implication that the following is unde

[boost] CVS main trunk regression test failure

2003-09-02 Thread Misha Bergal
The metacomm regression tests run failed last night because of the following bjam failure: boost-test(RUN) "iterators" : "libs\multi_array\test\iterators.cpp" boost-test(RUN) "compare" : "libs\multi_array\test\compare.cpp" boost-test(RUN) "access" : "libs\multi_array\test\access.cpp" boost-test(R

[boost] date_time naming

2003-09-02 Thread David Abrahams
I'm just getting started with the date_time library, and I think I'm gonna like it. I have some quibbles with the naming choices though (shocking! me of all people!) For example, why is the nested namespace called posix_time instead of, simply, posix? Once you're in a date_time context it seems

Re: [boost] optional/type_with_alignment.hpp vs. metrowerks 8.3 PPCCFM

2003-09-02 Thread Peter Dimov
Douglas Paul Gregor wrote: [...] >> struct A { >> double d; >> int i; >> }; [...] > Are there any other crazy rules like this that you know of? We could > just add "struct A" from above to the list of types, or if there is a > CodeWarrior-specific extension (e.g., something like "#pragma pack"

Re: [boost] optional/type_with_alignment.hpp vs. metrowerks 8.3 PPCCFM

2003-09-02 Thread Douglas Paul Gregor
On Tue, 2 Sep 2003, Mat Marcus wrote: > --On Tuesday, September 02, 2003 2:00 PM -0400 Douglas Gregor > <[EMAIL PROTECTED]> wrote: > > I suspect they are both '4', but that leaves me even more confused > > as to why the alignment of std::pair would be 8 > > (and how to get a POD type with alignme

Re: [boost] Re: Boost memory management guidelines

2003-09-02 Thread Gregory Colvin
On Tuesday, Sep 2, 2003, at 12:51 America/Denver, David Abrahams wrote: Gregory Colvin <[EMAIL PROTECTED]> writes: On Tuesday, Sep 2, 2003, at 11:22 America/Denver, David Abrahams wrote: Gregory Colvin <[EMAIL PROTECTED]> writes: So you would rather use this than use construct? template T*

Re: [boost] Re: Boost memory management guidelines

2003-09-02 Thread Gregory Colvin
On Tuesday, Sep 2, 2003, at 13:00 America/Denver, Peter Dimov wrote: Gregory Colvin wrote: On Tuesday, Sep 2, 2003, at 12:27 America/Denver, Peter Dimov wrote: Then again, the Dinkumware implementation dutifully calls construct and destroy, paying (and forcing me to pay) the abstraction penalty

Re: [boost] Re: Boost memory management guidelines

2003-09-02 Thread E. Gladyshev
--- Gregory Colvin <[EMAIL PROTECTED]> wrote: > Yep. I still think UserAllocator is a good default, and that where it > doesn't suffice there is some value to playing nicely with STL. > > So even when we come up with some beautiful new thing to do the > allocation job better, we will still need

[boost] Re: Re: circular_buffer ver. 3.3

2003-09-02 Thread Pavel Vozenilek
Hello Jano, > > 5. Borland C++ Builder 6.4 doesn't allow to bring > >operator[] via using. ... > > What about just overriding operator[] for all compilers? (With the note that some > compilers doesn't support using for operators.) > Incentive for vendows to blush and fix the bug? AFAICS Borlan

Re: [boost] Re: Boost memory management guidelines

2003-09-02 Thread Peter Dimov
Gregory Colvin wrote: > On Tuesday, Sep 2, 2003, at 12:27 America/Denver, Peter Dimov wrote: > >> Then again, the Dinkumware implementation >> dutifully calls construct and destroy, paying (and forcing me to pay) >> the abstraction penalty price... so maybe I'm wrong, and >> construct/destroy are

Re: [boost] optional/type_with_alignment.hpp vs. metrowerks8.3 PPC CFM

2003-09-02 Thread Mat Marcus
--On Tuesday, September 02, 2003 2:00 PM -0400 Douglas Gregor <[EMAIL PROTECTED]> wrote: On Tuesday 02 September 2003 01:36 pm, Mat Marcus wrote: We're trying to use optional from 1.30.0 (sorry legal hasn't approved our use of 1.30.2 yet). However on one compiler (Metrowerks 8.3 PPC CFM) we're

[boost] Re: Boost memory management guidelines

2003-09-02 Thread David Abrahams
Gregory Colvin <[EMAIL PROTECTED]> writes: > On Tuesday, Sep 2, 2003, at 11:22 America/Denver, David Abrahams wrote: >> Gregory Colvin <[EMAIL PROTECTED]> writes: >> >>> So you would rather use this than use construct? >>> >>>template T* addressof(T& v) >>>{ >>> return reinterpret_ca

Re: [boost] Re: Boost memory management guidelines

2003-09-02 Thread Gregory Colvin
On Tuesday, Sep 2, 2003, at 12:27 America/Denver, Peter Dimov wrote: Gregory Colvin wrote: You are assuming that there was no good reason to allow an allocator to hook construct and destroy, for instance to do some bookkeeping. I'm curious. Have you ever seen such an allocator? I've always assumed

[boost] Re: Virtual inheritance in exception hierarchies

2003-09-02 Thread David Abrahams
"Iain K. Hanson" <[EMAIL PROTECTED]> writes: >> But is this a good design? It certainly isn't the only possible one. >> (Making all the code depend upon the definitions of both Network_err and >> File_system_err - which no doubt drags other stuff into the translation unit >> - isn't a design choi

Re: [boost] Re: Boost memory management guidelines

2003-09-02 Thread Gregory Colvin
On Tuesday, Sep 2, 2003, at 11:39 America/Denver, David Abrahams wrote: Gregory Colvin <[EMAIL PROTECTED]> writes: On Tuesday, Sep 2, 2003, at 09:22 America/Denver, David Abrahams wrote: ... I think you're missing my point. There's no reason that a stateful allocator should have access to the s

Re: [boost] Re: Boost memory management guidelines

2003-09-02 Thread Peter Dimov
Gregory Colvin wrote: > > You are assuming that there was no good reason to allow an allocator > to hook construct and destroy, for instance to do some bookkeeping. I'm curious. Have you ever seen such an allocator? I've always assumed that construct/destroy/pointer are a "but someone might need t

Re: [boost] Re: Boost memory management guidelines

2003-09-02 Thread E. Gladyshev
--- David Abrahams <[EMAIL PROTECTED]> wrote: [...] > > I think construct/destroy can be implemented as non-customizable > > static functions in boost just for convinence. > > I think the word "static" is not what you meant, and is what led me > to challenge the suggestion. I used word 'static

Re: [boost] Re: Boost memory management guidelines

2003-09-02 Thread Gregory Colvin
On Tuesday, Sep 2, 2003, at 11:22 America/Denver, David Abrahams wrote: Gregory Colvin <[EMAIL PROTECTED]> writes: On Tuesday, Sep 2, 2003, at 09:22 America/Denver, David Abrahams wrote: Gregory Colvin <[EMAIL PROTECTED]> writes: I think part of my point was that *nobody* needs what they offer,

Re: [boost] optional/type_with_alignment.hpp vs. metrowerks 8.3 PPCCFM

2003-09-02 Thread Douglas Gregor
On Tuesday 02 September 2003 01:36 pm, Mat Marcus wrote: > We're trying to use optional from 1.30.0 (sorry legal hasn't approved > our use of 1.30.2 yet). However on one compiler (Metrowerks 8.3 PPC > CFM) we're getting static asserts from the alignment calculation > metafunctions. Below is an abst

RE: [boost] Re: Virtual inheritance in exception hierarchies

2003-09-02 Thread Iain K. Hanson
On Tue, 2003-09-02 at 18:06, [EMAIL PROTECTED] wrote: > > -Original Message- > > From: David Abrahams [mailto:[EMAIL PROTECTED] > > > > Alan, did you read > > http://aspn.activestate.com/ASPN/Mail/Message/boost/1781628 > > ?? > > I have, but (leaving aside the argument from authority) the

[boost] Re: Boost memory management guidelines

2003-09-02 Thread David Abrahams
"E. Gladyshev" <[EMAIL PROTECTED]> writes: > --- David Abrahams <[EMAIL PROTECTED]> wrote: > [...] >> Just how do you propose to prevent people from writing their own >> construct/destroy functions? And if they write an allocator from >> scratch, but *don't* provide construct/destroy manually, wh

[boost] Re: Virtual inheritance in exception hierarchies

2003-09-02 Thread David Abrahams
[EMAIL PROTECTED] writes: >> -Original Message- >> From: David Abrahams [mailto:[EMAIL PROTECTED] >> >> Alan, did you read >> http://aspn.activestate.com/ASPN/Mail/Message/boost/1781628 >> ?? > > I have, but (leaving aside the argument from authority) the example is too > sketchy convinci

[boost] Re: Boost memory management guidelines

2003-09-02 Thread David Abrahams
Gregory Colvin <[EMAIL PROTECTED]> writes: > On Tuesday, Sep 2, 2003, at 09:22 America/Denver, David Abrahams wrote: > >> Gregory Colvin <[EMAIL PROTECTED]> writes: >> ... >>> Dave: I think I would rather see a MPL lambda expression or metafunction class interface for allocator type para

[boost] optional/type_with_alignment.hpp vs. metrowerks 8.3 PPC CFM

2003-09-02 Thread Mat Marcus
We're trying to use optional from 1.30.0 (sorry legal hasn't approved our use of 1.30.2 yet). However on one compiler (Metrowerks 8.3 PPC CFM) we're getting static asserts from the alignment calculation metafunctions. Below is an abstracted example of the problem. I'm curious about what's going

Re: [boost] Re: Boost memory management guidelines

2003-09-02 Thread E. Gladyshev
--- David Abrahams <[EMAIL PROTECTED]> wrote: [...] > Something like: > > some_allocator<_1> > > or > > struct select_allocator > { > template > struct apply > { > typedef some_allocator type; > }; > }; > > with some_allocator's interface being like

[boost] Re: Boost memory management guidelines

2003-09-02 Thread David Abrahams
Gregory Colvin <[EMAIL PROTECTED]> writes: > On Tuesday, Sep 2, 2003, at 09:22 America/Denver, David Abrahams wrote: > >> Gregory Colvin <[EMAIL PROTECTED]> writes: >> I think part of my point was that *nobody* needs what they offer, if you include construct/destroy. >>> >>> Or rather th

[boost] memory issues with ublas::vector/matrix

2003-09-02 Thread Philip Miller
My primary question, however, is how can I share a contiguous block of memory with a ublas vector or matrix? For example, I would like to do something like: double* p = new double[16]; ublas::vector v(p, 16, SHARE); ublas::matrix v( p, 4, 4, SHARE); where the ublas vector object, v, and matrix o

RE: [boost] Re: Virtual inheritance in exception hierarchies

2003-09-02 Thread Alan . Griffiths
> -Original Message- > From: David Abrahams [mailto:[EMAIL PROTECTED] > > Alan, did you read > http://aspn.activestate.com/ASPN/Mail/Message/boost/1781628 > ?? I have, but (leaving aside the argument from authority) the example is too sketchy convincing. I don't see how any individual er

Re: [boost] Re: Boost memory management guidelines

2003-09-02 Thread E. Gladyshev
--- David Abrahams <[EMAIL PROTECTED]> wrote: [...] > Just how do you propose to prevent people from writing their own > construct/destroy functions? And if they write an allocator from > scratch, but *don't* provide construct/destroy manually, where will > they come from? What I meant is that i

Re: [boost] Re: Boost memory management guidelines

2003-09-02 Thread Gregory Colvin
On Tuesday, Sep 2, 2003, at 09:22 America/Denver, David Abrahams wrote: Gregory Colvin <[EMAIL PROTECTED]> writes: ... Dave: I think I would rather see a MPL lambda expression or metafunction class interface for allocator type parameters. It makes little sense for the allocator's user to be choos

Re: [boost] Re: Boost memory management guidelines

2003-09-02 Thread Gregory Colvin
On Tuesday, Sep 2, 2003, at 09:22 America/Denver, David Abrahams wrote: Gregory Colvin <[EMAIL PROTECTED]> writes: I think part of my point was that *nobody* needs what they offer, if you include construct/destroy. Or rather that some implementations have failed to use what they offer, and our st

[boost] Re: Boost memory management guidelines

2003-09-02 Thread David Abrahams
Gregory Colvin <[EMAIL PROTECTED]> writes: >> I think part of my point was that *nobody* needs what they offer, if >> you include construct/destroy. > > Or rather that some implementations have failed to use what they > offer, and our standard unfortunately doesn't insist that they do. It's not u

Re: [boost] Re: circular_buffer ver. 3.3 [long]

2003-09-02 Thread Jan Gaspar
Hi Pavel! Thank you very much for your comments. I agree with most of them. Thanks also for the picture. Here are my notes to some of your comments. > > Few notes to latest source: > > 1. circular_buffer_adaptor.html: the link in > >"The circular_buffer_space_optimized is defined in > the

Re: [boost] trouble with generating html compiler status pages

2003-09-02 Thread Beman Dawes
At 09:09 AM 9/2/2003, Matthew Towler wrote: >I have been attempting to build boost 1.30.2 for a number of platforms. > >I also wish to generate the html testsuite output for several reasons - >My own peace of mind, because we are using a reasonably large number of >platforms (some of which do not

Re: [boost] Re: Re: Deprecation/removal of libraries

2003-09-02 Thread Beman Dawes
At 05:17 PM 9/1/2003, Daniel Frey wrote: >On Thu, 28 Aug 2003 16:19:24 +0200, Douglas Gregor wrote: > >> On Thursday 28 August 2003 08:20 am, Daniel Frey wrote: >>> utility/tie was moved to tuple, so should we remove the obsolete >>> docs/references in utility now? >> >> Please do. > >Done. I also

Re: [boost] Re: Boost memory management guidelines

2003-09-02 Thread Gregory Colvin
On Tuesday, Sep 2, 2003, at 05:42 America/Denver, David Abrahams wrote: Gregory Colvin <[EMAIL PROTECTED]> writes: On Monday, Sep 1, 2003, at 14:48 America/Denver, David Abrahams wrote: Gregory Colvin <[EMAIL PROTECTED]> writes: Conforming containers had better use them. I'm sorry, but I think th

[boost] Re: optional, tie, and iterator_adaptor

2003-09-02 Thread David Abrahams
David Abrahams <[EMAIL PROTECTED]> writes: > Dave Gomboc <[EMAIL PROTECTED]> writes: > >> [Fernando Cacciola] >>> The most fundamental point is that being Haskell a pure functional >>> language there is no possibly undefined behaviour to worry about, >>> so Maybe doesn't need to address this issue

RE: [boost] Any interest in a string literal selector helper library?

2003-09-02 Thread Ehsan Akhgari
> I've done this before as well. > But it's a very simple function. > And I assume TestAutoSelect is a macro. > Can I take a look at the code? Yes, TextAutoSelect is a macro, because without using a macro, there is no way to generate a wchar_t string literal (prefixed with L) from a char string li

[boost] Re: Virtual inheritance in exception hierarchies

2003-09-02 Thread David Abrahams
[EMAIL PROTECTED] writes: > I've recently been discussing the guideline recently added to the exceptions > policy page with Dave Abrahams and he has asked me to post my views here. > > There is a seductive form of arguement that I've seen repeatedly lead > projects into trouble which has made me

[boost] trouble with generating html compiler status pages

2003-09-02 Thread Matthew Towler
I have been attempting to build boost 1.30.2 for a number of platforms. I also wish to generate the html testsuite output for several reasons - My own peace of mind, because we are using a reasonably large number of platforms (some of which do not appear on the status tables), and so I can see

Re: [boost] Re: Boost memory management guidelines

2003-09-02 Thread E. Gladyshev
--- David Abrahams <[EMAIL PROTECTED]> wrote: > >>> But indeed allocate/construct/deallocate/destroy is more work than > >> ^^^^ > >> Oyeah. These two absolutely don't belong in allocator, period. Do > >> any implementations even use them? Allocator

Re: [boost] Re: Re: Optional, tie, and iterator_adaptor

2003-09-02 Thread Mat Marcus
--On Monday, September 01, 2003 9:52 PM -0400 Brian McNamara <[EMAIL PROTECTED]> wrote: [snip] As a final aside, I think much of this thread is degenerating into Parkinson's Bicycle Shed[*], with respect to "is it a pointer/container/X?" At this point, I think we know what set of methods should

[boost] Re: adaptable_any vs any_with

2003-09-02 Thread Alexander Nasonov
Douglas Gregor wrote: > Between the two: adaptable_any is better, I think. > > Because I like throwing wrenches: have you considered a very different > name such as "polymorphic" or just "poly". The idea is that we read: > > poly > > as "a type that is polymorphic over all less_than_comparable

[boost] Re: Boost::regex w/o exceptions?

2003-09-02 Thread Daniel Spangenberg
John Maddock schrieb: [snip] > > If that is true: Why does the flag regbase::use_except (officially) > > exist? > > It's a historical accident and should have been removed from the docs. OK. So it seems that I should not write code which explicitely mentions regbase::use_except? > > Lets assume

Re: [boost] Re: Boost memory management guidelines

2003-09-02 Thread E. Gladyshev
--- Gregory Colvin <[EMAIL PROTECTED]> wrote: [...] > Apropos of which, I now think that the Boost UserAllocator requirements > should be the default for components that parameterize how they use > memory, with the Standard Allocator requirements being used only for > components that need what the

[boost] Re: [boost.variant] It is possible to makeavariantLessThanComparable

2003-09-02 Thread David Abrahams
"Eric Friedman" <[EMAIL PROTECTED]> writes: > Peter Dimov wrote: > [snip] >> Provide operator<. Wait six months. Collect feedback. If there is evidence >> that operator< is evil, remove it and document why it is not supplied. > > OK, I'm willing to go along with this. I'll probably also include >

[boost] Re: optional, tie, and iterator_adaptor

2003-09-02 Thread David Abrahams
Dave Gomboc <[EMAIL PROTECTED]> writes: > [Fernando Cacciola] >> The most fundamental point is that being Haskell a pure functional >> language there is no possibly undefined behaviour to worry about, >> so Maybe doesn't need to address this issue as optional<> does. > ... and later ... >> I accou

Re: [boost] Re: Re: Re: [boost.variant] It is possible to makeavariantLessThanComparable

2003-09-02 Thread Peter Dimov
Eric Friedman wrote: > Peter Dimov wrote: > [snip] >> Provide operator<. Wait six months. Collect feedback. If there is >> evidence that operator< is evil, remove it and document why it is >> not supplied. > > OK, I'm willing to go along with this. I'll probably also include > operator==, with a

[boost] Re: variant questions

2003-09-02 Thread David Abrahams
"Eric Friedman" <[EMAIL PROTECTED]> writes: > Alexander Nasonov wrote: >> Eric Friedman wrote: >> > If I understand you correctly, earlier versions of variant did precisely >> > what you describe. Unfortunately, the "assumption" you make is false in >> > general. See > http://aspn.activestate.com/

[boost] Re: Boost memory management guidelines

2003-09-02 Thread David Abrahams
Gregory Colvin <[EMAIL PROTECTED]> writes: > On Monday, Sep 1, 2003, at 14:48 America/Denver, David Abrahams wrote: >> Gregory Colvin <[EMAIL PROTECTED]> writes: >> > Conforming containers had better use them. I'm sorry, but I think that's flat wrong. What do you suppose that e

[boost] Re: Boost memory management guidelines

2003-09-02 Thread David Abrahams
"E. Gladyshev" <[EMAIL PROTECTED]> writes: >> The class getting constructed/destroyed has full control over that or >> the language is utterly bustificated. > > I think construct/destroy can be implemented as non-customizable > static functions in boost just for convinence. Just how do you propo

[boost] Virtual inheritance in exception hierarchies

2003-09-02 Thread Alan . Griffiths
I've recently been discussing the guideline recently added to the exceptions policy page with Dave Abrahams and he has asked me to post my views here. There is a seductive form of arguement that I've seen repeatedly lead projects into trouble which has made me very suspicious of the form: "provide

[boost] Re: Re: Re: Re: Optional, tie, and iterator_adaptor

2003-09-02 Thread Fernando Cacciola
"Dave Gomboc" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > [Fernando Cacciola] > > I'm saying that the choice made by variant<> in this regards is to the > > code using get<> as hopeless as undefined behaviour. I don't think that > > preconditions (and exceptions thereof) sh

Re: [boost] Re: Re: Re: Re: Optional, tie, and iterator_adaptor

2003-09-02 Thread Brian McNamara
On Mon, Sep 01, 2003 at 09:22:01PM -0600, Dave Gomboc wrote: > [Fernando Cacciola] > > I'm saying that the choice made by variant<> in this regards is to the > > code using get<> as hopeless as undefined behaviour. I don't think that > > preconditions (and exceptions thereof) should be used to arb

Re: [boost] Boost::regex w/o exceptions?

2003-09-02 Thread John Maddock
> Also I see the existence of boost::regbase::use_except and > boost::regbase::failbit > I don't see how to use them in a way to enable/disable exceptions in > regular > expressions, dispite probably the activation of the general > BOOST_NO_EXCEPTIONS > (Shame on me!). > > Question: It seems, that

Re: [boost] [for Win] [was: Re: 1.30.0->1.30.2: nomorethreadsupportfor Linux?]

2003-09-02 Thread John Maddock
> Thanks for your reply. > I've created my own vcproj (VC++ 7.1 project) for building the libs that I > need, > and I've used the /MD flag which is the "multithread- and DLL-specific > versions" flag (used also for my application), > which means that everything is fine, right? Yep. John. __

Re: [boost] adaptable_any vs any_with

2003-09-02 Thread Douglas Gregor
On Monday 01 September 2003 07:53 am, Alexander Nasonov wrote: > I'm asking for voting for the new name of dynamic_any. Please, give you > preference. > Here is my discussion about the name with Kevlin Henney (>> and empty > prefix - Kevlin, > - me) Between the two: adaptable_any is better, I thin

[boost] Re: Re: Re: Re: Optional, tie, and iterator_adaptor

2003-09-02 Thread Dave Gomboc
[Fernando Cacciola] > I'm saying that the choice made by variant<> in this regards is to the > code using get<> as hopeless as undefined behaviour. I don't think that > preconditions (and exceptions thereof) should be used to arbitrarily > make the illusion of giving meaning to an operation that i

Re: [boost] Re: variant questions

2003-09-02 Thread Douglas Gregor
On Saturday 30 August 2003 08:00 am, David Abrahams wrote: > Misha Bergal <[EMAIL PROTECTED]> writes: > > Eric Friedman wrote: > >> P.S. Has there been any progress in handling BoostBook documentation in > >> CVS? Perhaps Greg or MetaComm can run nightly builds? > > > > We can do that. Is there any

[boost] Re: Re: Re: Re: Optional, tie, and iterator_adaptor

2003-09-02 Thread Fernando Cacciola
"Joel de Guzman" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > Fernando Cacciola <[EMAIL PROTECTED]> wrote: > > >> variant throws throws a bad_get exception > >> when you get a reference to a T which is not the held type. I don't see > >> a problem why you can't do something s

Re: [boost] Re: variant questions

2003-09-02 Thread Douglas Gregor
On Friday 29 August 2003 10:53 pm, Eric Friedman wrote: > P.S. Has there been any progress in handling BoostBook documentation in > CVS? Perhaps Greg or MetaComm can run nightly builds? (This of course does > not solve the problem of offline access though...) There has been no progress, though it

Re: [boost] Re: Re: Optional, tie, and iterator_adaptor

2003-09-02 Thread Brian McNamara
On Tue, Sep 02, 2003 at 09:05:59AM +0800, Joel de Guzman wrote: > My attempt to image "optional as conceptually a specialized but > nevertheless, *IS-A* T, with the added specialization that it can > be in a dead-uninitialized state." Is a feeble attempt to re-sell the idea > of the concept that w

Re: [boost] Re: generic uses of optional

2003-09-02 Thread Brian McNamara
On Mon, Sep 01, 2003 at 04:05:59PM -0600, Dave Gomboc wrote: > [Brian McNamara] > >do_something( adapt( 3 ) ); > >do_something( adapt( nilable(3) ) ); > >do_something( adapt( foo ) ); // foo has unknown type > > But I'd like to write > do_something(3); >

Re: [boost] Re: optional, tie, and iterator_adaptor

2003-09-02 Thread Joel de Guzman
Dave Gomboc <[EMAIL PROTECTED]> wrote: > [Fernando Cacciola] >> The most fundamental point is that being Haskell a pure functional >> language there is no possibly undefined behaviour to worry about, >> so Maybe doesn't need to address this issue as optional<> does. > ... and later ... >> I account

Re: [boost] Re: Re: Re: Optional, tie, and iterator_adaptor

2003-09-02 Thread Joel de Guzman
Fernando Cacciola <[EMAIL PROTECTED]> wrote: >>> Direct value accesing via implicit conversion: int i = opt >>> seems wrong because this is the operation that can lead to undefined >>> behaviour. >> >> Doesn't have to be undefined behaviour. >> > Yes it does. > Accesing a value that isn't there

Re: [boost] Re: Re: Optional, tie, and iterator_adaptor

2003-09-02 Thread Joel de Guzman
Mat Marcus <[EMAIL PROTECTED]> wrote: > --On Monday, September 01, 2003 3:37 PM -0300 Fernando Cacciola > <[EMAIL PROTECTED]> wrote: > >> Joel de Guzman <[EMAIL PROTECTED]> wrote in message >>> One can think of an optional as conceptually a specialized but >>> nevertheless, *IS-A* T, with the add

[boost] Boost::regex w/o exceptions?

2003-09-02 Thread Daniel Spangenberg
Hello Boosters, maybe I am blind as a bat, but I was looking for a possibility to check a given regular expression for its general validity. To get rid of my problem to define "validity" I delegate its definition to "everything which would lead to the throw of boost::bad_expression" of all reg_ex

[boost] Re: Re: Re: [boost.variant] It is possible to makeavariantLessThanComparable

2003-09-02 Thread Eric Friedman
Peter Dimov wrote: [snip] > Provide operator<. Wait six months. Collect feedback. If there is evidence > that operator< is evil, remove it and document why it is not supplied. OK, I'm willing to go along with this. I'll probably also include operator==, with a similar plan for future evaluation.

Re: [boost] Re: Boost memory management guidelines

2003-09-02 Thread E. Gladyshev
--- "E. Gladyshev" <[EMAIL PROTECTED]> wrote: > > --- David Abrahams <[EMAIL PROTECTED]> wrote: > > >>> But indeed allocate/construct/deallocate/destroy is more work than > > >> ^^^^ > > >> Oyeah. These two absolutely don't belong in allocator, perio