Re: [boost] Help requested for Metrowerks workaround

2003-08-30 Thread Howard Hinnant
On Friday, August 29, 2003, at 11:58 PM, Eric Friedman wrote: I've recently added reference support to variant. For instance, the following is now supported: Unfortunately, the addition of this constructor seems to have broken variant under Metrowerks in some situations. So far, I have discovered

[boost] Re: variant questions

2003-08-30 Thread David Abrahams
"Eric Friedman" <[EMAIL PROTECTED]> writes: > David Abrahams wrote: >> "Eric Friedman" <[EMAIL PROTECTED]> writes: >> >> > Dave, >> > >> > Please see the BoostBook reference documentation for variant. The HTML > is >> > quite out of sync with the current implementation. I haven't removed it > from

RE: [boost] int64_t with MSVC 7.1 & 'strict' /Za option

2003-08-30 Thread Paul A. Bristow
Thanks. Paul | -Original Message- | From: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED] Behalf Of John Maddock | Sent: Friday, August 29, 2003 2:01 PM | To: Boost mailing list | Subject: Re: [boost] int64_t with MSVC 7.1 & 'strict' /Za option | | | > Trying to use boost/date-time in MSVC

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

2003-08-30 Thread Peter Dimov
Gregory Colvin wrote: > * document whether and how a library allocates memory The Throws clause is a pretty good estimate for "whether". :-) ___ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Re: [boost] Boost memory management guidelines

2003-08-30 Thread Peter Dimov
Gregory Colvin wrote: > On Friday, Aug 29, 2003, at 18:05 America/Denver, David Abrahams > wrote: >> Gregory Colvin <[EMAIL PROTECTED]> writes: >> >>> * use the standard parameterization mechanisms (Allocator) when >>>choosing to parameterize >> >> I'm not sure about this one. std::allocator a

[boost] [BGL] Missing open delimiter for HTML tag in dijkstra_shortest_paths.html

2003-08-30 Thread Janusz Piwowarski
Hi, As in subject: first line, first character. -- Regards, Janusz ___ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

[boost] [BGL] Patch for edmunds_karp_max_flow.hpp (2)

2003-08-30 Thread Janusz Piwowarski
Hi all, I think is unnecessary to test _is_default_param_; dispatch* functions are called when there isn't default parameter. -- Regards, Janusz --- edmunds_karp_max_flow.hpp.orig Fri Aug 29 22:15:14 2003 +++ edmunds_karp_max_flow.hpp Sat Aug 30 12:46:40 2003 @@ -164,11 +164,7 @@

RE: [boost] Re: variant questions

2003-08-30 Thread Keith Burton
I consider single storage vital in my intended uses of variant. I would slightly prefer option 1 ( void ) over option 2 ( boost::empty ) but not at the expense of availability of the implementation of Microsoft compilers. Option 3 would definitely not get my vote. Keith Burton [EMAIL PROTECTE

[boost] Re: variant questions

2003-08-30 Thread David Abrahams
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 info on how to use Boost.Build v2 to > build BoostBook? > > I've

[boost] Re: boost/detail/iterator.hpp update

2003-08-30 Thread David Abrahams
Brian McNamara <[EMAIL PROTECTED]> writes: > On Thu, Aug 28, 2003 at 03:05:19PM -0400, David Abrahams wrote: >> Douglas Gregor <[EMAIL PROTECTED]> writes: >> > On Thursday 28 August 2003 01:23 pm, David Abrahams wrote: >> >> The other possible option would have been to simply not give the user >>

[boost] Re: Boost memory management guidelines

2003-08-30 Thread David Abrahams
Aleksey Gurtovoy <[EMAIL PROTECTED]> writes: > E. Gladyshev wrote: >> > * Consider parametrization, especialy if your library is to be available >> > for embedded or non-traditional (like DSP, etc.) platfroms. >> >> I think this item will make you think twice before hiding >> boost::signal's allo

Re: [boost] int64_t with MSVC 7.1 & 'strict' /Za option

2003-08-30 Thread John Maddock
> Trying to use boost/date-time in MSVC 7.1 in 'strict' mode option /Za 'disable > language extensions' it seems that > > boost::int64_t isn't available. > > After a journey through the labryinthine config modules, I have got compiling > with > > #define BOOST_HAS_MS_INT64 // required if language e

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

2003-08-30 Thread John Maddock
> As suggested by Marco Oman, the problem appears to be caused by overloading > the various operators for the enum type, which happens in match_flags.hpp > (lines 79 to 92). If these are removed for the Borland compiler, then the > conflict goes away, at the cost of a bunch of "Assigning int to ...

[boost] Re: variant questions

2003-08-30 Thread Andrei Alexandrescu
"Eric Friedman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > But suppose I have a variant v3, with content of a different type (call it > T3). Then the assignment v1 = v3 is far more complicated (we can't use > T1::operator=) and, without double storage, far more dangerous. The sin

[boost] Re: variant questions

2003-08-30 Thread Misha Bergal
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 info on how to use Boost.Build v2 to build BoostBook? I've downloaded Milestone 6 zipball and built bjam. Then I

[boost] Re: Any interest in a generic pluggable factory class?

2003-08-30 Thread Gennadiy Rozental
"Rob & Lori" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > For those of you who are unfamiliar with pluggable factories, I suggest > reading the following C++ Report article: > http://www.adtmag.com/joop/crarticle.asp?ID=1520 I have generic implementation of plugable factory in va

[boost] Re: variant questions

2003-08-30 Thread Eric Friedman
Eric Friedman wrote: [snip] > ...there are alternative (albeit less elegant) options. [snip] I'd like to present what are IMO the most viable options for manually disabling variant's double storage. Option #1: (I presented a very similar strategy to this some time ago at http://aspn.activestate.

Re: [boost] Boost memory management guidelines

2003-08-30 Thread E. Gladyshev
--- Aleksey Gurtovoy <[EMAIL PROTECTED]> wrote: > E. Gladyshev wrote: > > > * Consider parametrization, especialy if your library is to be available > > > for embedded or non-traditional (like DSP, etc.) platfroms. > > > > I think this item will make you think twice before hiding > > boost::signa

[boost] Re: Any interest in a generic pluggable factory class?

2003-08-30 Thread Bohdan
If your solution is generic i'm interested. Is it possible to look at code ? BTW, Your library may correlate with expected serialization library. regards, bohdan "Rob & Lori" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > For those of you who are unfamiliar with pluggable factories

Re: [boost] Boost memory management guidelines

2003-08-30 Thread Aleksey Gurtovoy
E. Gladyshev wrote: > > * Consider parametrization, especialy if your library is to be available > > for embedded or non-traditional (like DSP, etc.) platfroms. > > I think this item will make you think twice before hiding > boost::signal's allocator. An allocator parameter is not the only way to

Re: [boost] Re: [boost.optional && boost.variant] Why can't weallowreferences?

2003-08-30 Thread Joel de Guzman
Eric Friedman <[EMAIL PROTECTED]> wrote: > Joel, > > Joel de Guzman wrote: > [snip] >> Also, is there a reason why we can't allow: >> >> variant var; > > Nothing fundamental no, just some additional metaprogramming ;) It's > supported now (see variant_reference_test). Cool! > See below for

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

2003-08-30 Thread Joel de Guzman
Dave Gomboc <[EMAIL PROTECTED]> wrote: >> Right now I am questioning whether the >> pointer-like semantics is worth it to me. I would probably prefer that >> clients type more to test whether a value is initialized so that they >> can type less to call a function that takes an optional as a paramet

[boost] Re: Help requested for Metrowerks workaround

2003-08-30 Thread Eric Friedman
Oops! I forgot to attach the test file! It's now attached. Thanks, Eric Eric Friedman wrote: > Dear Boosters, > > I've recently added reference support to variant. For instance, the > following is now supported: > > int i = 3; > boost::variant var(i); > i = 2; > BOOST_CHECK( boo

Re: [boost] Do-nothing binary function

2003-08-30 Thread Brian McNamara
On Thu, Aug 28, 2003 at 03:59:19PM +0400, Vladimir Prus wrote: > Would it be desirabe to have such class? I'm thinking about > > struct do_nothing { > template > void operator()(const T&) const {} > > template >void operator()(const T1& t1, const T2& t2) const {} > >

Re: [boost] Re: boost/detail/iterator.hpp update

2003-08-30 Thread Brian McNamara
On Thu, Aug 28, 2003 at 03:05:19PM -0400, David Abrahams wrote: > Douglas Gregor <[EMAIL PROTECTED]> writes: > > On Thursday 28 August 2003 01:23 pm, David Abrahams wrote: > >> The other possible option would have been to simply not give the user > >> a readable error message. I'm open to opinions

[boost] Help requested for Metrowerks workaround

2003-08-30 Thread Eric Friedman
Dear Boosters, I've recently added reference support to variant. For instance, the following is now supported: int i = 3; boost::variant var(i); i = 2; BOOST_CHECK( boost::get(var) == 2 ); However, such support required the addition of an additional variant constructor templa

Re: [boost] Re: lexicographic: review request?

2003-08-30 Thread Brian McNamara
> The point is, that Jan proposed to add something which has a hidden > overhead and I'm not sure it's a good idea. Instead of nested > if-else-cascades, the user could also write: > > bool operator<( const person& lhs, const person& rhs ) > { >return > lhs.lastname != rhs.lastname ? l

Re: [boost] Boost memory management guidelines

2003-08-30 Thread E. Gladyshev
--- Gregory Colvin <[EMAIL PROTECTED]> wrote: > On Friday, Aug 29, 2003, at 18:16 America/Denver, E. Gladyshev wrote: > There is a tradeoff between possibly better performance and possibly > unwanted dependancies. This is why we call them guidelines for now. It is up to the developer to conside

[boost] Re: variant questions

2003-08-30 Thread Eric Friedman
Dave, David Abrahams wrote: [snip] > > If you'd > > like to see relatively recently-generated HTML, check out > > http://www.cs.rpi.edu/~gregod/boost/doc/html/variant.html. > > Suggestion: check an index page into the CVS which redirects to this > page. The link I provided above will not be home

Re: [boost] Boost memory management guidelines

2003-08-30 Thread Gregory Colvin
On Friday, Aug 29, 2003, at 18:16 America/Denver, E. Gladyshev wrote: I'd like to start a new thread with Gregory's suggestion and my comments. Gregory Colvin wrote: ... * use the standard mechanisms (::operator new or std::allocator) when it is necessary Boost already has boost::allocator. IMO

[boost] Re: variant questions

2003-08-30 Thread Eric Friedman
Gennadiy Rozental wrote: > > BTW, after looking at the implementation I was a bit disappointed to > > see two copies of the storage. It seems to nullify one > > important reason for using variants (space savings), and it generates > > more code than a single-storage version. I know you had some r

Re: [boost] Boost memory management guidelines

2003-08-30 Thread Gregory Colvin
On Friday, Aug 29, 2003, at 18:05 America/Denver, David Abrahams wrote: Gregory Colvin <[EMAIL PROTECTED]> writes: * use the standard parameterization mechanisms (Allocator) when choosing to parameterize I'm not sure about this one. std::allocator are a mess, and almost everyone knows it. The

[boost] Boost memory management guidelines

2003-08-30 Thread E. Gladyshev
I'd like to start a new thread with Gregory's suggestion and my comments. Gregory Colvin wrote: > > At the least, we could add the following bullet > >* Discussion of memory management strategy. > > to http://www.boost.org/more/lib_guide.htm#Documentation > > I'm reluctant to say very much

[boost] Re: Optional, tie, and iterator_adaptor

2003-08-30 Thread David Abrahams
Dave Gomboc <[EMAIL PROTECTED]> writes: >> template >> class nilable { > > Was that small enough to be considered not copyrightable, warrantable, etc. > ? > > If so, fine. Otherwise I guess I have to disclaim any warranty, etc. Boost > Public Licence? http://www.boost-consulting.com/bo

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

2003-08-30 Thread David Abrahams
Gregory Colvin <[EMAIL PROTECTED]> writes: > * use the standard parameterization mechanisms (Allocator) when >choosing to parameterize I'm not sure about this one. std::allocator are a mess, and almost everyone knows it. They were designed for containers, and they only barely work there, IM

[boost] Re: variant questions

2003-08-30 Thread Gennadiy Rozental
> BTW, after looking at the implementation I was a bit disappointed to > see two copies of the storage. It seems to nullify one > important reason for using variants (space savings), and it generates > more code than a single-storage version. I know you had some rationale for > that but I don't r

[boost] Re: variant questions

2003-08-30 Thread David Abrahams
"Eric Friedman" <[EMAIL PROTECTED]> writes: > David Abrahams wrote: >> "Eric Friedman" <[EMAIL PROTECTED]> writes: >> >> > Dave, >> > >> > Please see the BoostBook reference documentation for variant. The HTML > is >> > quite out of sync with the current implementation. I haven't removed it > from