[boost] program_option library bug report

2003-05-30 Thread Pavol Droba
Hi, I have probably encountered a bug in the library. I'm not able to put a bool option in the config file. Regardles how I specify the option there, parsing always fails with the exception: "config file options should have required parameter" Defintion of the option: ( "debug.log-deb

Re: [boost] RE: an XML API in boost

2003-05-30 Thread Stefan Seefeld
Vladimir Prus wrote: What is wrong with Xerces-C++ library (http://xml.apache.org/xerces-c/index.html) ? Probably, the fact that its tarball is comparable in size to the entire Boost? And, related, performance of the libxml2 is far better then any compotitor. Of course, it remains to be shown th

Re: [boost] Usefull Functor (obj_fun)

2003-05-30 Thread Giovanni Bajo
Torbjörn Gyllebring <[EMAIL PROTECTED]> wrote: > struct B > { > int f(int i){ cout << i << "\t";} > int g(int i) const { cout << i << "\n";} > }; > > int main(int argc, char *argv[]) > { > vector ivec; > for(int i = 0; i < 10; ++i) > ivec.push_back( i); > B b; > for_each( ivec.begin(), ivec

Re: [boost] interest in dominator tree?

2003-05-30 Thread Larry Evans
Jeffrey Hsu wrote: Is there any interest in a generic implementation of the Lengauer-Tarjan algorithm to compute the immediate dominator tree of a flow graph in almost-linear time? I'd be interested; however, I've no immediate use. I'm only interested because I'm interested in compilers and analyz

RE: [boost] MPL regression tests?

2003-05-30 Thread Aleksey Gurtovoy
Beman Dawes wrote: > One possible short-term fix might be to run the MPL tests separately, > and post them as a separate table. That's what we plan to do, although format of the table probably going to be different - please see below. > Long term, some kind of hierarchical approach might help wit

[boost] Usefull Functor (obj_fun)

2003-05-30 Thread Torbjörn Gyllebring
Hi! Im new to the list but I got an idea I want to share, maybe this is old and well known but for me it's new and solves a very real problem. While using STL i often end up writing code like: for( containertype::iterator itr = cont.begin(); itr != cont.end(); ++itr) object->doThing( *itr); whe

[boost] interest in dominator tree?

2003-05-30 Thread Jeffrey Hsu
Is there any interest in a generic implementation of the Lengauer-Tarjan algorithm to compute the immediate dominator tree of a flow graph in almost-linear time? Jeffrey ___ Unsubscribe & other changes:

Re: [boost] problem with libs/config/test/boost_no_std_wstreambuf.cxx

2003-05-30 Thread John Maddock
> I've found a little problem in boost_no_std_wstreambuf.cxx > The code uses std::ptrdiff_t but doesn't #include > > I hesitated to add that #include because I don't know wether > all relevant compilers already support that. > > With the current code, the results for Comeau C++ on Linux > are wr

[boost] smart_assert - update.

2003-05-30 Thread John Torjo
Hi all, This is an update of smart_assert - 3rd gear allowed now ;-). I've attached it; you can also get it from: www.torjo.com/smart_assert.zip. Features that were present before (and still are ;-)): - simple and straightforward usage - multiple levels of assertions (warn, debug, etc.) what us

Re: [boost] Interest in multiply indexed set container?

2003-05-30 Thread Joaquín Mª López Muñoz
I forgot to say it, multiindex.zip is in the Files section. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo Joaquín Mª López Muñoz ha escrito: > Hi all, > > I'm (slowly) working on multiindex_set, an std::set-like container > supporting multiple indices, much in the spirit of a rela

[boost] Re: Configuration ideas

2003-05-30 Thread Vladimir Prus
Hi Daryle, Daryle Walker wrote: > [I wrote this half-asleep a few days ago. You could add things like > signals/slots, better list management, etc. Take this suggestion as a > very general guideline, not as actual code to use.] > > I haven't looked at the command-line/config library under revi

[boost] RE: an XML API in boost

2003-05-30 Thread Vladimir Prus
Aleksey Chernoraenko wrote: >> I wrote a C++ wrapper library around libxml2 (http://xmlsoft.org/), >> and would like to submit it to boost. It currently provides a DOM-like >> and a SAX-like interface, is parametrized for the (possibly unicode >> enabled) string type, and has already proven its va

[boost] Re: [ANN] New Version of the Wave preprocessor libraryreleased

2003-05-30 Thread faisal vali
Has anyone had problems getting the new wave preprocessor (cpp.cpp) to compile? NMotably any position_policy error messages (not defined in spirit and such...) Also i've been getting some linker errors - I'm using gcc 3.2.1 (is that the problem?) any clues will be appreciated. regards, -fas Hartm

[boost] patch for date_time library

2003-05-30 Thread Synge Todo
Dear Boosters, SGI MIPSpro C++ can not compile programs, which use date_time library. The compiler complains as follows: cc-3354 CC: ERROR File = /home/i004/i00400/src/boost/boost/date_time/time_system_split.hpp, Line = 35 A non-integral operation is not allowed in a nontype template argument.

[boost] Re: Cyclic smart pointers (holy grail: the uber-point er)

2003-05-30 Thread Chuck Messenger
Schoenborn, Oliver wrote: - You always have A owns A_impl owns B owns B_impl refs A (what your original code seems to say), in this case B_impl contains an RRef instead of a DynObj and everything works I'd like to hear whether that's your case or not. No. A and B are completely symmetrical. Th

[boost] lambda bugs ?

2003-05-30 Thread firingme
consider the following code : test.cpp * #include #include #include #include #include #include using namespace std ; using namespace boost ; using namespace boost::lambda; int main(){ int i = 1 ; cout << ( _1+i)(i=2) << endl; }

Re: [boost] smart_ptr: sp_collector can't handle STL containers ofshared_ptr's

2003-05-30 Thread Gregory Colvin
On Thursday, May 29, 2003, at 21:25 America/Denver, Larry Evans wrote: Gregory Colvin wrote: [snip] Do you really need a precise collector? Boehm's collector works just fine. Most people don't, but some do. In Jones and Lins _Garbage Collection_ there's mention of "misidentification" or "false"

Re: [boost] smart_ptr: sp_collector can't handle STL containersof shared_ptr's

2003-05-30 Thread Larry Evans
Gregory Colvin wrote: [snip] Do you really need a precise collector? Boehm's collector works just fine. Most people don't, but some do. In Jones and Lins _Garbage Collection_ there's mention of "misidentification" or "false" pointers in applications with large compress bitmaps. Also, for high

RE: [boost] Re: Cyclic smart pointers (holy grail: the uber-pointer)

2003-05-30 Thread Schoenborn, Oliver
> -Original Message- > From: Chuck Messenger [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 29, 2003 4:47 PM > To: [EMAIL PROTECTED] > Subject: [boost] Re: Cyclic smart pointers (holy grail: the > uber-pointer) > > > Schoenborn, Oliver wrote: > > >>>- You always have A owns A_impl own

Re: [boost] smart_ptr: sp_collector can't handle STL containers ofshared_ptr's

2003-05-30 Thread Gregory Colvin
On Thursday, May 29, 2003, at 20:52 America/Denver, Larry Evans wrote: Gregory Colvin wrote: Check out http://www.hpl.hp.com/personal/Hans_Boehm/gc/gcinterface.html [snip] On Thursday, May 29, 2003, at 19:57 America/Denver, Larry Evans wrote: Gregory Colvin wrote: [snip] > It is not that hard

Re: [boost] smart_ptr: sp_collector can't handle STL containersof shared_ptr's

2003-05-30 Thread Larry Evans
Gregory Colvin wrote: Check out http://www.hpl.hp.com/personal/Hans_Boehm/gc/gcinterface.html [snip] On Thursday, May 29, 2003, at 19:57 America/Denver, Larry Evans wrote: Gregory Colvin wrote: [snip] > It is not that hard to write a new(gc) and gc_allocator > using Boehm's collector, for t

Re: [boost] smart_ptr: sp_collector can't handle STL containers ofshared_ptr's

2003-05-30 Thread Gregory Colvin
Also check out http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc_cpph.txt for a gc base clase to inherit from. On Thursday, May 29, 2003, at 20:20 America/Denver, Gregory Colvin wrote: Check out http://www.hpl.hp.com/personal/Hans_Boehm/gc/gcinterface.html which provides a gc_a

Re: [boost] smart_ptr: sp_collector can't handle STL containers ofshared_ptr's

2003-05-30 Thread Gregory Colvin
Check out http://www.hpl.hp.com/personal/Hans_Boehm/gc/gcinterface.html which provides a gc_alloc, and for new(gc) all you need is something like this: struct gc_t {}; static const gc_t gc; void* operator new (size_t n, const gc_t&) { return GC_malloc(n); } void* operator new[](

Re: [boost] smart_ptr: sp_collector can't handle STL containersof shared_ptr's

2003-05-30 Thread Larry Evans
Gregory Colvin wrote: [snip] > It is not that hard to write a new(gc) and gc_allocator > using Boehm's collector, for those who don't want to have > the collector take over all memory allocation. I found John Max Skaller's posts on such a gc_allocator: http://aspn.activestate.com/ASPN/Mail/Mes

RE: [boost] an XML API in boost

2003-05-30 Thread Darryl Green
> -Original Message- > From: Stefan Seefeld [mailto:[EMAIL PROTECTED] > Sent: Friday, 30 May 2003 2:56 AM > To: [EMAIL PROTECTED] > Subject: [boost] an XML API in boost > > > hi there, > > I'v been wondering for quite a while whether a generic XML C++ library > would be an interesting

[boost] Re: Cyclic smart pointers (holy grail: the uber-pointer)

2003-05-30 Thread Chuck Messenger
Schoenborn, Oliver wrote: - You always have A owns A_impl owns B owns B_impl refs A (what your original code seems to say), in this case B_impl contains an RRef instead of a DynObj and everything works I'd like to hear whether that's your case or not. No. A and B are completely symmetrical. Th

[boost] Configuration ideas

2003-05-30 Thread Daryle Walker
[I wrote this half-asleep a few days ago. You could add things like signals/slots, better list management, etc. Take this suggestion as a very general guideline, not as actual code to use.] I haven't looked at the command-line/config library under review right now. I have seen recent discuss

[boost] Re: Cyclic smart pointers (holy grail: the uber-pointer)

2003-05-30 Thread Chuck Messenger
Peter Dimov wrote: ... This is a graph. The classic "tree structure" combined with reference counting can only represent (possibly multiply linked) DAGs, but not general graphs. One possible representation of a general graph is a vertex pool and a separate edge pool. This avoids the ownership issue

[boost] Interest in multiply indexed set container?

2003-05-30 Thread Joaquín Mª López Muñoz
Hi all, I'm (slowly) working on multiindex_set, an std::set-like container supporting multiple indices, much in the spirit of a relational table. On instantiation time, a tuple of comparison predicates is provided as well as information on which of them are to be treated as unique (no duplicates).

RE: [boost] an XML API in boost

2003-05-30 Thread Aleksey Chernoraenko
> Stefan Seefeld wrote: > ...are tailored towards java, and there is often either no C++ mapping or one that I consider rather poor > as it doesn't make any use of C++ specific idioms. > > I wrote a C++ wrapper library around libxml2 (http://xmlsoft.org/), > and would like to submit it to boost. I

RE: [boost] Cyclic smart pointers (holy grail: the uber-pointer)

2003-05-30 Thread Schoenborn, Oliver
> -Original Message- > From: Chuck Messenger [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 29, 2003 8:26 AM > To: [EMAIL PROTECTED] > Subject: [boost] Cyclic smart pointers (holy grail: the uber-pointer) > > > Schoenborn, Oliver wrote: > > > The above code does not make sense from a s

[boost] an XML API in boost

2003-05-30 Thread Stefan Seefeld
hi there, I'v been wondering for quite a while whether a generic XML C++ library would be an interesting project (providing DOM- and SAX- like as well as other APIs), in particular because all the standard interfaces that are released by the W3C (and others) are tailored towards java, and there is

Re: [boost] smart_ptr: sp_collector can't handle STL containers ofshared_ptr's

2003-05-30 Thread Gregory Colvin
On Thursday, May 29, 2003, at 09:57 America/Denver, Larry Evans wrote: Gregory Colvin wrote: [snip] It seems that rather than take the route of modifying all the standard containers one might as well just provide a special operator new(gc) and gc_allocator that can track all the memory blocks on t

Re: [boost] smart_ptr: sp_collector can't handle STL containersof shared_ptr's

2003-05-30 Thread Larry Evans
Gregory Colvin wrote: [snip] It seems that rather than take the route of modifying all the standard containers one might as well just provide a special operator new(gc) and gc_allocator that can track all the memory blocks on the heap that might contain a shared_ptr. Then one can either replace gl

Re: [boost] Re: Cyclic smart pointers (holy grail: the uber-pointer)

2003-05-30 Thread Larry Evans
Larry Evans wrote: [snip] See if the current stl_container.cpp can at least traverse your pointer graph correctly. Unfortunately, stl_container.cpp can't work with the stl because it prototypes a "slight" modification to stl to make stl easily gc'ed. If you want to work with the current stl, you'

Re: [boost] smart_ptr: sp_collector can't handle STL containers ofshared_ptr's

2003-05-30 Thread Gregory Colvin
On Thursday, May 29, 2003, at 08:45 America/Denver, Chuck Messenger wrote: ... And so, sp_collector suffers the same problem as shared_cyclic_ptr, and requires the same remedy: that is, it is necessary to be able to "tag" a container as being one which might hold "internal" shared_ptr's. Any i

[boost] problem with libs/config/test/boost_no_std_wstreambuf.cxx

2003-05-30 Thread Martin Wille
Hi, I've found a little problem in boost_no_std_wstreambuf.cxx The code uses std::ptrdiff_t but doesn't #include I hesitated to add that #include because I don't know wether all relevant compilers already support that. With the current code, the results for Comeau C++ on Linux are wrong. Regards,

Re: [boost] Re: Cyclic smart pointers (holy grail: the uber-pointer)

2003-05-30 Thread Larry Evans
Chuck Messenger wrote: Larry Evans wrote: [snip] Right. scoped_cyclic_ptr (in shared_cyclic_ptr.zip) works around this by using a smart ptr enumerator function specialized for each type of container. The specialized function is then used to access all the smart ptrs in the container (via the be

[boost] Re: an xml-binary persistence library

2003-05-30 Thread Nicola Santi
Hi Reece, The boost sandbox is a CVS repository used by Boost developers to hold works-in-progress so they are available to other Boost developers. Thank you for your indications. I' ve from long time put eternity on sourceforge at the address: http://sourceforge.net/projects/eternity-it It co

Re: [boost] Re: Cyclic smart pointers (holy grail: the uber-pointer)

2003-05-30 Thread Peter Dimov
Chuck Messenger wrote: > What is the status of sp_collector.cpp? It's distributed as part of > Boost right now. Is it intended to remain part of the shared_ptr > library? It sounds like it should suit my purposes quite well, after > all... sp_collector.cpp has a "gift" status. ;-) Meaning that

Re: [boost] Re: Cyclic smart pointers (holy grail: the uber-pointer)

2003-05-30 Thread Peter Dimov
Chuck Messenger wrote: > Schoenborn, Oliver wrote: > > Imagine that I'm supplying a network simulation library. I have: > > #include > #include > #include > #include > > using namespace std; > using namespace boost; > > struct Node; > > struct NodeImpl :

[boost] Re: Problem: gcc 2.95: undefined reference to `test_main(int, char **)'

2003-05-30 Thread Gennadiy Rozental
> /// START CODE /// > // Boost Unit Test Library: > #include > #include You included test_exec_monitor. > // Individual Components: > // None - just a clean compile would be nice! > > using namespace boost::unit_test_framework; > > test_suite* init_unit_tes

[boost] smart_ptr: sp_collector can't handle STL containers of shared_ptr's

2003-05-30 Thread Chuck Messenger
I tried out sp_collector.cpp. Here's my code (the Network Simulation Library): #include #include #include #include using namespace std; using namespace boost; struct NodeImpl; NodeImpl* NodeImpl_Create(int id); struct Node { Node(int id) : pimpl_

Re: [boost] Stream-buffers can't be copied?

2003-05-30 Thread Howard Hinnant
On Thursday, May 29, 2003, at 12:29 AM, Daryle Walker wrote: I'm trying to fix up the I/O library submission I gave a few months ago, and came up with an issue with a copy constructor and GCC. I explicitly wrote a copy constructor for a new stream-buffer class template. I just added test cod

[boost] [BGL] null vertex?

2003-05-30 Thread Vladimir Prus
I think that it would be handy to introduce "null vertex value" into BGL. For example, I'm computing some 'alternative vertices' in some function. If no such vertex exists, I'd like to record this fact, so that when the function is called again on the same vertex, I don't have to do anything. I

Re: [boost] Cyclic smart pointers (holy grail: the uber-pointer)

2003-05-30 Thread Larry Evans
Peter Dimov wrote: Larry Evans wrote: Chuck Messenger wrote: The basic idea is to intercept all memory allocations -- p = new X; -- saving the info with "map[p] = sizeof(X);". To find the interconnections between objects, you do this: for (map_type::iterator it = map.begin(); it != map.end();