Re: [boost] Re: Re: Formal Review: Command Line & Config library

2003-05-27 Thread Pavol Droba
Hi, I have been reading the discussiong here about adding the support for unicode. Maybe there is a solution which would allow to have templated versions of relevant classes AND static library in one box. If we decide that specialization for char and wchar_t is sufficient, the headers can con

[boost] Re: CLA/Config file library opinion

2003-05-27 Thread Vladimir Prus
Rozental, Gennadiy wrote: > 1. You store something inside class cmdline Actually, only arguments, for the benefit of folks which might use 'cmdline' standalone. Options are not stored there. > 2. You store strings in options_and_arguments > 3. You store typed values in variables_map > > In my o

Re: [boost] Re: command line parser review

2003-05-27 Thread Tanton Gibbs
> > 1. Static vs Shared > > I would much prefer header files only instead of a shared library. Having > > to deal with shared libraries are a pain on many systems (such as cygwin). > > Using a header file is clean and easy -- therefore much preferred by me. > > One of the biggest benefits to boost

[boost] Re: command line parser review

2003-05-27 Thread Vladimir Prus
Hi Tanton, Tanton Gibbs wrote: > Since there have been a few emails bouncing around, I'd like to chime in > with my opinions on a few matters. > > 1. Static vs Shared > I would much prefer header files only instead of a shared library. Having > to deal with shared libraries are a pain on many s

RE: [boost] smart_ptr suggestion: Support decrementing shared_ptr'scount, forself-references

2003-05-27 Thread Schoenborn, Oliver
Circular refs are easy to avoid with smart_ptr lib but idiomatically what you are really looking for is DynObj (and maybe RRef ) in the NoPtr lib (http://noptrlib.sourceforge.net). Strict ownership is ideal for pimpl and in particular your example of circular dependency, as supported by the NoPtr l

Re: [boost] Re: Wish list for Date-Time library

2003-05-27 Thread Terje Slettebø
>From: "Ian Baxter" <[EMAIL PROTECTED]> > I wish that the date time library could construct a ptime from it's own > to_simple_string function. > > i.e time = time_from_string( to_simple_string( time ) ); > > Strange to have library that can construct a time from a string, but not > from a string i

[boost] Re: Formal Review: Command Line & Config library

2003-05-27 Thread Vladimir Prus
Chuck Messenger wrote: > Vladimir Prus wrote: >> Chuck Messenger wrote: >> >> >>>Vladimir Prus wrote: >>> >>> Yep. This question was raised already. I think that making templates out of all classes is *a* solution, but I'm not sure it's *the* solution. The problem is that extensive t

[boost] Re: Re: Formal Review: Command Line & Config library

2003-05-27 Thread Vladimir Prus
Matthias Troyer wrote: > > On Tuesday, May 27, 2003, at 05:44 PM, John Torjo wrote: > - does not work for wchar_t. While this might seem silly, it's not, >> since VC allows for a TCHAR* command line string. >>> >>> I have to consider this. An obvious approach would be to add template >

[boost] Re: Wish list for Date-Time library

2003-05-27 Thread Ian Baxter
I wish that the date time library could construct a ptime from it's own to_simple_string function. i.e time = time_from_string( to_simple_string( time ) ); Strange to have library that can construct a time from a string, but not from a string it itself has produced. Also, with MSVC 7.0, the date

[boost] command line parser review

2003-05-27 Thread Tanton Gibbs
Since there have been a few emails bouncing around, I'd like to chime in with my opinions on a few matters. 1. Static vs Shared I would much prefer header files only instead of a shared library. Having to deal with shared libraries are a pain on many systems (such as cygwin). Using a header file

[boost] Re: smart_ptr suggestion: Support decrementing shared_ptr'scount,forself-references

2003-05-27 Thread Chuck Messenger
Peter Dimov wrote: Chuck Messenger wrote: Consider that A and B may implement various "interfaces" (i.e. inherit from 1+ abstract base classes w/o member variables). I can't just use multiple inheritance (i.e. AB inherits from each interface that either A or B needs), because, for one thing, ther

Re: [boost] persistence

2003-05-27 Thread Scott Woods
> It isn't clear from you post if you are aware of all the work (including a > formal review) that has already gone into persistence and/or serialization > at Boost. See the archives at > http://aspn.activestate.com/ASPN/Mail/Browse/Threaded/boost > Sheesh. A lot of work has been done. A comparati

[boost] Documentation problem -http://www.boost.org/libs/conversion/lexical_cast.htm

2003-05-27 Thread John Levon
The documentation at http://www.boost.org/libs/conversion/lexical_cast.htm appears to make no mention of the whitespace-handling, or the fact that it can't handle things like lexical_cast("0x16"). It would be appreciated if these restrictions could be made clear. regards, john __

[boost] lexical_cast suggestions

2003-05-27 Thread Alessandro Molina
Hi, I'm new to this list and I'm writing here just to suggest to you a different implementation for lexical_cast. Actually lexical_cast doesn't make easy to add possibilities for new casts, and for example if I have to cast from IpAddress class to an int it wouldn't be easy. (even casting IpAddress

Re: [boost] persistence

2003-05-27 Thread Scott Woods
> It isn't clear from you post if you are aware of all the work (including a > formal review) that has already gone into persistence and/or serialization > at Boost. See the archives at > http://aspn.activestate.com/ASPN/Mail/Browse/Threaded/boost > > In particular, are you aware of Robert Ramey's

[boost] Re: [BGL] Proxy Graph ?

2003-05-27 Thread David Abrahams
David Pearce <[EMAIL PROTECTED]> writes: > David, > >> I think I had the same problems when I implemented the reverse_graph >> adaptor, and never found a good answer :( > > Thanks for the reply. Looking at the reverse_graph_adaptor, I notice > that you achieve what I want using the > "reverse_grap

[boost] Re: Wish list for Date-Time library

2003-05-27 Thread Carl Waldbieser
> > The ability to create flexible offsets from a given date are extremely > > useful, especially when the units involved are mixed (days, weeks, months, > > years). The ability of the Date-Time library to handle situations like this > > has really impressed me so far, but situations where the of

Re: [boost] Re: smart_ptr suggestion: Support decrementingshared_ptr'scount,forself-references

2003-05-27 Thread Larry Evans
Chuck Messenger wrote: [snip[ Thanks -- it looks very interesting. I did some googling, to see what its status is. Seems it hasn't been mentioned much since the flurry of activity in Jan-May 2001. Pity, since if it works "as advertised", it seems pretty useful. I implemented Lin's local mark

[boost] Re: smart_ptr suggestion: Support decrementingshared_ptr'scount,forself-references

2003-05-27 Thread Chuck Messenger
Larry Evans wrote: Chuck Messenger wrote: [snip] In general, the abstraction is: you have a group of intra-referential objects. When any of the group is constructed, they are all constructed (so that the master count is temporarily > 1), and the master count is reset to 1. When the master coun

Re: [boost] Should regression summary consider both pass and warn as passing?

2003-05-27 Thread Beman Dawes
Take a look at the new version of http://boost.sourceforge.net/regression-logs/. I think the meaning of the percentages is much clearer now. Thanks to those who provided suggestions, and to Rene Rivera for the implementation. --Beman ___ Unsubscribe

Re: [boost] smart_ptr suggestion: smart_ptr.hpp should include weak_ptr.hpp, etc.

2003-05-27 Thread Beman Dawes
At 11:44 AM 5/27/2003, Peter Dimov wrote: >Chuck Messenger wrote: >> For convenience, logical continuity, and consistency with other Boost >> libraries, you should be able to include all the smart_ptr pieces with >> >> #include >> >> Currently, only 4 are included: >> >> #include >>

Re: [boost] Re: smart_ptr suggestion: Support decrementingshared_ptr'scount, forself-references

2003-05-27 Thread Peter Dimov
Chuck Messenger wrote: > > Consider that A and B may implement various "interfaces" (i.e. inherit > from 1+ abstract base classes w/o member variables). I can't just use > multiple inheritance (i.e. AB inherits from each interface that > either A > or B needs), because, for one thing, there can be

Re: [boost] Re: smart_ptr suggestion: Support decrementingshared_ptr'scount,forself-references

2003-05-27 Thread Larry Evans
Chuck Messenger wrote: [snip] In general, the abstraction is: you have a group of intra-referential objects. When any of the group is constructed, they are all constructed (so that the master count is temporarily > 1), and the master count is reset to 1. When the master count goes to 0, the gr

[boost] Re: smart_ptr suggestion: Support decrementing shared_ptr'scount,forself-references

2003-05-27 Thread Chuck Messenger
Peter Dimov wrote: Chuck Messenger wrote: In general, the abstraction is: you have a group of intra-referential objects. When any of the group is constructed, they are all constructed (so that the master count is temporarily > 1), and the master count is reset to 1. When the master count goes to

[boost] Re: CLA/Config file library opinion

2003-05-27 Thread Rozental, Gennadiy
>> > 2. Layered design. > > IMO All of my > > concerns are unfortunate consequences of the way you designed your > > library. IMO there should be one typed storage for the parsed > arguments > > (instead of 3 like you have) linked with formal parameters description. > You are not correct. There

[boost] shared_ptr suggestions: empty() and shares_ownership_with()

2003-05-27 Thread Joe Gottman
I have a suggestion for two new member functions for shared_ptr . Both give useful information that is currently available, but in non-obvious or potentially inefficient ways. 1) bool empty() const returns true if the shared_ptr does not own an object, and false if it does own an object

Re: [boost] Re: smart_ptr suggestion: Support decrementingshared_ptr'scount, forself-references

2003-05-27 Thread Peter Dimov
Chuck Messenger wrote: > > Suppose I have a cyclic dependency between A and B, which are > implemented with the pimpl idiom: > > #include > #include > > using namespace boost; > using namespace std; > > > struct B_impl; > > struct B { > shared_ptr pimpl_; >

[boost] Re: smart_ptr suggestion: smart_ptr.hpp should includeweak_ptr.hpp,etc.

2003-05-27 Thread Chuck Messenger
Peter Dimov wrote: Chuck Messenger wrote: For convenience, logical continuity, and consistency with other Boost libraries, you should be able to include all the smart_ptr pieces with #include Currently, only 4 are included: #include #include #include #include Missing are

Re: [boost] Re: Formal Review: Command Line & Config library

2003-05-27 Thread Matthias Troyer
On Tuesday, May 27, 2003, at 05:44 PM, John Torjo wrote: - does not work for wchar_t. While this might seem silly, it's not, since VC allows for a TCHAR* command line string. I have to consider this. An obvious approach would be to add template parameter to every class, telling which char type to

[boost] Re: smart_ptr suggestion: Support decrementing shared_ptr'scount,forself-references

2003-05-27 Thread Chuck Messenger
Peter Dimov wrote: Chuck Messenger wrote: Suppose you have this: struct X { shared_ptr y; ... }; struct Y { X x; }; struct Z { Z() : pimpl_(new Y()) { pimpl_->x.y = pimpl_; } shared_ptr pimpl_; ... }; I'm using t

Re: [boost] persistence

2003-05-27 Thread Beman Dawes
At 07:04 PM 5/25/2003, Scott Woods wrote: >Is anyone interested in a persistence mechanism? It isn't clear from you post if you are aware of all the work (including a formal review) that has already gone into persistence and/or serialization at Boost. See the archives at http://aspn.activestat

Re: [boost] Re: Formal Review: Command Line & Config library

2003-05-27 Thread John Torjo
> > - does not work for wchar_t. While this might seem silly, it's not, since > > VC allows for a TCHAR* command line string. > > I have to consider this. An obvious approach would be to add template > parameter to every class, telling which char type to use. So investigation > is needed to find al

Re: [boost] Re: Enum operators

2003-05-27 Thread John Torjo
- Original Message - From: "Reece Dunn" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 27, 2003 1:57 PM Subject: Re: [boost] Re: Enum operators > I have adopted a Java-style approach to enumerated-style values (don't know > if this is the best approach, just the way that

[boost] Re: smart_ptr suggestion: Support decrementingshared_ptr'scount,forself-references

2003-05-27 Thread Chuck Messenger
I take back this suggestion -- intrusive_ptr<> does what I want. - Chuck Chuck Messenger wrote: Suppose you have this: struct X { shared_ptr y; ... }; struct Y { X x; }; struct Z { Z() : pimpl_(new Y()) { pimpl_->x.y = pimpl_;

Re: [boost] Re: shared_ptr/weak_ptr and thread-safety

2003-05-27 Thread Peter Dimov
Alexander Terekhov wrote: > Peter Dimov wrote: >> >> Trevor Taylor wrote: >>> >>> Why wait? With so many people contributing to boost, why not >>> introduce a pthread_refcount_t into into boost threads (or is there >>> one already?), provide a default implementation equivalent to what >>> shared_p

Re: [boost] smart_ptr suggestion: Support decrementingshared_ptr'scount, forself-references

2003-05-27 Thread Peter Dimov
Chuck Messenger wrote: > Suppose you have this: > > struct X { > shared_ptr y; > ... > }; > > struct Y { > X x; > > }; > > struct Z { > Z() : pimpl_(new Y()) { pimpl_->x.y = pimpl_; } > shared_ptr pimpl_; >

Re: [boost] smart_ptr suggestion: smart_ptr.hpp should includeweak_ptr.hpp, etc.

2003-05-27 Thread Peter Dimov
Chuck Messenger wrote: > For convenience, logical continuity, and consistency with other Boost > libraries, you should be able to include all the smart_ptr pieces with > > #include > > Currently, only 4 are included: > > #include > #include > #include > #include > > Mi