Re: [boost] Boost License Issues

2002-11-25 Thread Lars Gullik Bjønnes
Rene Rivera [EMAIL PROTECTED] writes: | Nice to know, but AFAIK (C) does have legal standing; but only if used in | addition to Copyright. And yes the command as previously posted checked | for copyright only :-) But of course if Copyright is present, then (C) is utterly redundant. It was my

Re: [boost] Virtual operators considered harmful

2002-11-25 Thread Vladimir Prus
Daryle Walker wrote: [Apologies to the computer scientist who came up with that phrase (w.r.t. GOTOs)] I haven't looked at the serialization library that was just up for review, but some of the comments I saw on this list suggested that the archive classes use virtual operators for reading or

Re: [boost] Boost License Issues

2002-11-25 Thread Rene Rivera
[2002-11-25] Lars Gullik Bjønnes wrote: Rene Rivera [EMAIL PROTECTED] writes: | Nice to know, but AFAIK (C) does have legal standing; but only if used in | addition to Copyright. And yes the command as previously posted checked | for copyright only :-) But of course if Copyright is present,

[boost] FW: Boost Unit Test Framework: Localisation hiccups

2002-11-25 Thread Rozental, Gennadiy
Dear Gennadiy, I've just been trying out the latest (1.29.0) release of the Boost Unit Test Framework. I ran into a few minor localisation hiccups you might want to be told about. I'm using Metrowerks Codewarrior 8.1 on MacOS 9.2. A couple of problems resulted directly from this.

[boost] Re: Serialization Library Review

2002-11-25 Thread Gennadiy Rozental
5.2 registration - A brief recap: You did not comment on my Issue 1 and proposition to completely separate registration into template parameter. This way you won't need any macro. The user will choose what kind of registration system he prefer at the later stage. Gennadiy.

[boost] Re: Sockets

2002-11-25 Thread Markus Schöpflin
Eric Woodruff wrote: snip * Support for Event-Driven and Blocking sockets This one should go without saying. The event-driven support can trivially be provided in the pure socket interface and easily created using tools like boost::signals or boost::function. ** Thread Pool For

[boost] boost Borland C++ Builder 6

2002-11-25 Thread vladimir josef sykora
Any experiences using boost-libs with Borland Builder 6, specially BGL and MPL? Already performed or anyone attempted some Regression Tests? -- vladimir sykora morphochem AG gmunder str. 37-37a 81379 muenchen tel. ++49-89-78005-0 fax ++49-89-78005-555 [EMAIL PROTECTED]

Re: [boost] Serialization library review

2002-11-25 Thread Matthias Troyer
* A serialization of bool is missing - easy to fix I don't understand what you mean. basic_[i|o]archive contain: Sorry, I missed that because it is separate from the other virtual functions and not implemented in the b[io]archive class on which I based my XDR implementation. * The code

Re: [boost] intrusive_ptr ?

2002-11-25 Thread Peter Dimov
From: Christophe Meessen [EMAIL PROTECTED] [...] I was looking for some documentation on using intrusive_ptr but they are apparently not documented. Looking at the header files I got some hints how to use them. Why are the intrusive_ptr not documented ? Does it mean that it is not standard

Re: [boost] Spurious g++ warnings with shared_ptr tests

2002-11-25 Thread Peter Dimov
From: David Abrahams [EMAIL PROTECTED] Peter Dimov [EMAIL PROTECTED] writes: Can we add -Wno-non-virtual-dtor to g++ tests? The ability of shared_ptr to support nonvirtual destructors is an essential feature, and the tests do exercize it. Can't you just add

RE: [boost] NonBlocking I/O--Multiplexing (was Sockets)

2002-11-25 Thread Jeff Garland
On Sun, 2002-11-24 at 21:23, Jeff Garland wrote: Is there a reason why we can't define a simple socket library first as a lower layer without the complications of multiplexing and threading and then add those on top? Jeremy Maitin-Shepard wrote: That seems reasonable, since due to the

RE: [boost] Review Request: I/O Manipulators and Adaptors

2002-11-25 Thread Jeff Garland
Could we arrange a review of the I/O stuff I currently have in the sandbox? The files are: boost/io/array_stream.hpp boost/io/iomanip.hpp boost/io/streambuf_wrapping.hpp boost/io_fwd.hpp [updated] libs/io/doc/array_stream.html libs/io/doc/index.html [updated] libs/io/doc/iomanip.html

Re: [boost] offset_cast proposal

2002-11-25 Thread Pavol Droba
On Sun, Nov 24, 2002 at 11:18:10PM +0100, Terje Sletteb? wrote: On Sun, Nov 24, 2002 at 07:27:42PM +0100, Terje Sletteb? wrote: From: Pavol Droba [EMAIL PROTECTED] Reinterpret-cast could be avoided like this: template typename T inline T* offset_cast( void* p, unsigned

Re: [boost] Re: Sockets

2002-11-25 Thread Hamish Mackenzie
On Mon, 2002-11-25 at 10:30, Markus Schöpflin wrote: And I think it would be really important to provide a clean interaction model between the socket library and the thread library and a clean solution to the problems that keep on coming up again and again when doing socket programming.

[boost] Re: SocketSetConcept(fd_set wrapper)

2002-11-25 Thread Hu Xinwei
hi boosters: http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?BoostSocket/SocketSetConcept Can we use std::set like method names... remove - erase add - insert is_set - count (I'm not fussed about this one) Wrap fd_set is interesting, but I don't think it is necessary. IMHO,

Re:[boost] Serialization library review

2002-11-25 Thread Peter Petrov
code fragments such as: line 95-96 of archive.cpp seem unacceptable to me: // note breaking a rule here - is this a problem on some platform is.read(const_castchar *(s.data()), size); Although is non standard I believe that the above code will work on all known platforms. It yields an

Re: [boost] offset_cast proposal

2002-11-25 Thread Terje Slettebø
From: Pavol Droba [EMAIL PROTECTED] On Sun, Nov 24, 2002 at 07:27:42PM +0100, Terje Sletteb? wrote: For example, if you have a buffer like this (starting at an aligned address): +0 - One byte +1 - Number 1 +5 - Number 2 +9 - Number 3 Even if you have a struct with three

[boost] strict_weak_ordering

2002-11-25 Thread Ben Young
Recently at our company we had a couple of bugs relating to people incorrectly writing comparison operators, so I came up with this little helper. It is very trivial, but useful none the less as bogus comparison operators can be the cause of many bugs. Obviously it could be improved to take a

Re: [boost] mpl transform

2002-11-25 Thread David Abrahams
vladimir josef sykora [EMAIL PROTECTED] writes: Hello, Is there a way to apply a binary operation over two sequences? For example, I have two sequences: LHSseq and RHSseq. I want now to construct the return type, which is a sequence that cointains the result types of applying a binary

Re: [boost] Boost.Format and older GCC compiler.

2002-11-25 Thread Samuel Krempp
Le ven 22/11/2002 à 19:22, Lars Gullik Bjønnes a écrit : Boost.Format uses locale, sstream and ostream none of these headers exist with the c++ lib distributed with gcc 2.95 or 2.96. That's right, I noticed this problem too. Instead of including the minimal headers as specified in the norm, I

[boost] Re: Sockets

2002-11-25 Thread Markus Schöpflin
Hu Xinwei wrote: - How to interupt a thread waiting on some socket event (synchronous and asynchronous) from another thread? IMHO, I dont think such a mechanism is needed. A typical example: You have a thread that implements a synchronous listener like this: bind(); listen(); while (true)

[boost] Proposal: comparable_any and ordered_any

2002-11-25 Thread Peter Petrov
Hi, The boost::any type is currently limited because it's impossible to be used as the key type in a map or a hash_map for example. It is obvious that adding comparison operators to boost::any is unnacceptable, because that would require all value types to also have these operators defined.

[boost] Re: Socket errors

2002-11-25 Thread Hugo Duncan
Hamish, On 24 Nov 2002 20:49:06 +, Hamish Mackenzie [EMAIL PROTECTED] wrote: http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?BoostSocket/SocketErrorConcept [snip] A write on an ssl stream can block attempting to read from the underlying socket (and vice-versa). Not sure

[boost] Re: Possible boost addition: sub string and const string.

2002-11-25 Thread Alexei Novakov
John Maddock [EMAIL PROTECTED] wrote in message 040701c292ee$84b01840$c43487d9@1016031671">news:040701c292ee$84b01840$c43487d9@1016031671... Alexei, Looks like we're all thinking alike, a while ago I put together a sequence based substring class that could act as a universal wrapper for any

[boost] Re: Metaclass and reflection framework (was: Implicitconversionsindynamic_any / extract)

2002-11-25 Thread Bohdan
Remy Blank [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm really only at the very beginning of this project, so I'm currently searching for information and previous work on the subject. Boost.Python seemed to already provide lots of functionality in this

[boost] Re: Implicit conversions in dynamic_any / extract

2002-11-25 Thread Alexander Nasonov
Alexander Nasonov wrote: You can create your own framework for dynamic_any using dynamic_any::function. In a combination with simple and typesafe interface it could make great library. Basic idea is here: namespace your_framework { // ... namespace detail { // ... struct

[boost] Re: Sockets

2002-11-25 Thread Hu Xinwei
Hu Xinwei wrote: - How to interupt a thread waiting on some socket event (synchronous and asynchronous) from another thread? IMHO, I dont think such a mechanism is needed. A typical example: You have a thread that implements a synchronous listener like this: bind(); listen(); while

[boost] Re: Sockets

2002-11-25 Thread Hugo Duncan
Pavol, On Sun, 24 Nov 2002 10:12:36 +0100, Pavol Droba [EMAIL PROTECTED] wrote: Is there an interest to support also non-TCP/IP based protocols like IRDA/TP or raw sockets? I think this should be feasable, though I know nothing of IRDA/TP. Is it just a case of using the appropriate

[boost] Re: Re: SocketSetConcept (fd_set wrapper)

2002-11-25 Thread Hugo Duncan
Hamish, On 24 Nov 2002 23:23:27 +, Hamish Mackenzie [EMAIL PROTECTED] wrote: is_set - count (I'm not fussed about this one) Not sure about count, how about something like active Yes, or contains? or find. Having looked at set maybe count is better, but that suggests an integer return

[boost] Re: mpl transform

2002-11-25 Thread David B. Held
David Abrahams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... [...] Well I hope that was all instructive, but it was probably way more complicated than neccessary. I think it would actually be far superior to build a solution around an mpl iterator adaptor like

Re: [boost] Boost License Issues

2002-11-25 Thread Sean Parent
Sorry to not jump back into this thread sooner - there is too much traffic on boost for me to keep track. I'm going to be spending my time in early December primarily focusing on boost licensing issues and have a IP lawyer within Adobe assisting me. I've been through this numerous times with

Re: [boost] offset_cast proposal

2002-11-25 Thread Pavol Droba
On Mon, Nov 25, 2002 at 04:52:35PM +0100, Terje Sletteb? wrote: From: Pavol Droba [EMAIL PROTECTED] On Mon, Nov 25, 2002 at 02:47:54PM +0100, Terje Sletteb? wrote: How did you do it on the ARM? As I understand, it requires word-alignment for words (and half-word alignment for

[boost] Re: Sockets

2002-11-25 Thread Markus Schöpflin
Hu Xinwei wrote: It is surprisingly difficult to portably tell this thread that it should terminat itself. Well, the portable method I know is like this: listen thread: for (;;) { fd = accept(); if(server_should_shutdown) { //do something here then exit } //process fd here }

RE: [boost] strict_weak_ordering

2002-11-25 Thread Rozental, Gennadiy
While ago John Panzer proposed function test_strict_weak_ordering I modified it for use with Boost.Test (look here: http://groups.yahoo.com/group/boost/files/test_strict_weak_ordering/BTL_comp atible/runtime_concept_check.hpp) I was thinking about adding it to Boost.Test. Will you find it

Re: [boost] intrusive_ptr ?

2002-11-25 Thread Jim Grandy
On 11/25/02 10:06 AM, Peter Dimov [EMAIL PROTECTED] wrote: One thing missing from intrusive_ptr as implemented in 1.29 is the ability to avoid the add_ref at construction time. There are a number of APIs using refcounted opaque types (Apple in particular is fond of them) in which a function

Re: [boost] Boost License Issues

2002-11-25 Thread David Abrahams
Sean Parent [EMAIL PROTECTED] writes: Sorry to not jump back into this thread sooner - there is too much traffic on boost for me to keep track. I'm going to be spending my time in early December primarily focusing on boost licensing issues and have a IP lawyer within Adobe assisting me.

RE: [boost] Boost License Issues

2002-11-25 Thread Paul A. Bristow
So should we use Copyright (c), 2002, A N Author to cover as many countries/lawyers as possible? But do we need to update the year for each release (perhaps twice a year?)? What significance does the year have? Paul Paul A Bristow, Prizet Farmhouse, Kendal, Cumbria, LA8 8AB UK +44 1539

RE: [boost] Re: Re: Formal Review Request: class optional

2002-11-25 Thread Rozental, Gennadiy
Your are asking why can't the constructor be not explicit, right? Well, this would allow the 'direct' syntax fn(1,3) that Vincent wanted, but... It would entirely break the pointer semantics because the following would be allowed: void foo() { optionalint opt ; opt = 3 ;

[boost] [config] - compiler versions

2002-11-25 Thread Gennaro Prota
A question about BOOST_COMPILER_VERSION: as far as I can see from the release 1.29 files, that macro is only defined for VC++ and Metrowerks C++. That's acceptable for me because, I suppose, they are the only compilers where the end user version number is not immediately obvious from the value of

[boost] Re: Re: SocketSetConcept (fd_set wrapper)

2002-11-25 Thread Michel André
So I think we should be careful to keep it simple. I think it is interesting that in Hugo's current implementation, no library is required. Very nice. I won't be surprised if we need a real library at some point, but it won't be anything like the size of ACE. I think we should try to

[boost] Boost.Python, embedding and extending, exposing instances

2002-11-25 Thread thor . arne . johansen
Hello, I'm trying to embedd and extend a C++ application. I was not able to find any good examples of how to do this. From the small tidbits of information I found, plus browsing the Boost.Python sources, I tried the following approach (starting from the getting_started2 example, with an added

RE: [boost] Re: Sockets

2002-11-25 Thread Boris Schäling
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Markus Schöpflin Sent: Monday, November 25, 2002 11:30 AM To: [EMAIL PROTECTED] Subject: [boost] Re: Sockets [...] - How do you wait for more than just socket events? Thread conditions, window

RE: [boost] Re: AW: Re: AW: Sockets

2002-11-25 Thread Boris Schäling
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Hamish Mackenzie Sent: Monday, November 25, 2002 2:43 AM To: Boost mailing list Subject: RE: [boost] Re: AW: Re: AW: Sockets [...] I added

Re: [boost] Re: Re: SocketSetConcept (fd_set wrapper)

2002-11-25 Thread Hamish Mackenzie
On Mon, 2002-11-25 at 15:57, Hugo Duncan wrote: I have attached the implementation of file_descriptor_set I have been using in my code recently. Is there really any difference except in the name? The use of friend is for select is certainly worth thinking about. Nope, just thought it

Re: [boost] Boost License Issues

2002-11-25 Thread Chris Little
on 11/25/02 2:13 PM, Paul A. Bristow at [EMAIL PROTECTED] wrote: So should we use Copyright (c), 2002, A N Author to cover as many countries/lawyers as possible? But do we need to update the year for each release (perhaps twice a year?)? What significance does the year have? In our

Re: [boost] Re: relative/absolute paths in filesystem library

2002-11-25 Thread Beman Dawes
At 03:08 PM 11/25/2002, Justus Schwartz wrote: * Beman Dawes [EMAIL PROTECTED] [021125 03:26]: The branch fs_review gives a snapshot of work-in-progress. It isn't stable at the moment, but progress is definitely being made. I'm hoping to get a lot of work done on it this coming week. i

Re: [boost] Re: Formal Review Request: class optional

2002-11-25 Thread Fernando Cacciola
- Original Message - From: Vincent Finn [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 25, 2002 12:16 PM Subject: [boost] Re: Formal Review Request: class optional Fernando Cacciola wrote: - Original Message - From: Vincent Finn [EMAIL PROTECTED] And now

[boost] Sockets

2002-11-25 Thread Michel André
Hello! I've made some suggestions on the following pages. Outlining new interfaces for address and data_sockets concept (or data_connections as I called the concept for now). http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?BoostSocket/A ddressConcept Separation of resolving and

Re: [boost] Boost License Issues

2002-11-25 Thread Terje Slettebø
From: Chris Little [EMAIL PROTECTED] on 11/25/02 2:13 PM, Paul A. Bristow at [EMAIL PROTECTED] wrote: So should we use Copyright (c), 2002, A N Author to cover as many countries/lawyers as possible? But do we need to update the year for each release (perhaps twice a year?)? What

Re: [boost] Re: Re: Formal Review Request: class optional

2002-11-25 Thread Fernando Cacciola
- Original Message - From: Rozental, Gennadiy [EMAIL PROTECTED] To: 'Boost mailing list' [EMAIL PROTECTED] Sent: Monday, November 25, 2002 4:25 PM Subject: RE: [boost] Re: Re: Formal Review Request: class optional Your are asking why can't the constructor be not explicit, right?

Re: [boost] Boost License Issues

2002-11-25 Thread Rene Rivera
[2002-11-25] Chris Little wrote: on 11/25/02 2:13 PM, Paul A. Bristow at [EMAIL PROTECTED] wrote: So should we use Copyright (c), 2002, A N Author Except for the commas, as they are grammatical sugar from the copyright law perspective. to cover as many countries/lawyers as possible? But

[boost] Socket Multiplexing

2002-11-25 Thread Hugo Duncan
Boris and Hamish have presented examples using objects that provide fat interfaces for event notification. By this I mean they use seperate onEvent() handlers for each type of event as member functions of an event sink or observer class. ACE (I think) uses enums to register interest in

RE: [boost] Re: AW: Re: AW: Sockets

2002-11-25 Thread Hamish Mackenzie
On Mon, 2002-11-25 at 20:57, Boris Schäling wrote: Looks good but am I correct in thinking it uses blocking writes to the socket? (no on_write). This is ok for some applications but would not work for sending large files or streaming live content. The library uses non-blocking write. If

Re: [boost] Boost.Python, embedding and extending, exposinginstances

2002-11-25 Thread David Abrahams
[EMAIL PROTECTED] writes: Hello, I'm trying to embedd and extend a C++ application. I was not able to find any good examples of how to do this. http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/boost/boost/libs/python/test/embedding.cpp From the small tidbits of information I

RE: [boost] Re: AW: Re: AW: Sockets

2002-11-25 Thread Boris Schäling
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Hamish Mackenzie Sent: Monday, November 25, 2002 11:53 PM To: Boost mailing list Subject: RE: [boost] Re: AW: Re: AW: Sockets On Mon, 2002-11-25 at 20:57, Boris Schäling wrote: Looks good but am

Re: [boost] Re: Re: Socket errors

2002-11-25 Thread Hamish Mackenzie
On Mon, 2002-11-25 at 23:34, Hugo Duncan wrote: Hamish, On 25 Nov 2002 17:17:41 +, Hamish Mackenzie [EMAIL PROTECTED] wrote: On Mon, 2002-11-25 at 15:43, Hugo Duncan wrote: A write on an ssl stream can block attempting to read from the underlying socket (and vice-versa).

RE: [boost] Boost License Issues

2002-11-25 Thread Beman Dawes
At 12:57 AM 11/25/2002, Rene Rivera wrote: Thanks, Rene. You're welcome ;-) -- Perhaps those of us who are handy with scripts could help you automate some of the release procedures? That's one of the motivations for the filesystem library. By writing the scripts in C++, every Boost

RE: [boost] Re: relative/absolute paths in filesystem library

2002-11-25 Thread Glen Knowles
Title: RE: [boost] Re: relative/absolute paths in filesystem library I'm dealing with filesystem paths and urls and the way we ended up implementing it is with the following functions (we are not currently using boost::filesystem, these are from an internal library): current_directory() -

Re: [boost] Serialization Library Review

2002-11-25 Thread Robert Ramey
Date: 25 Nov 2002 00:03:08 -0500 From: Jeremy Maitin-Shepard [EMAIL PROTECTED] Hmmm - what I don't understand is how this would be different that calling void basic_oarchive::write_array(void* p, size_t count) Incidently, this would work for any kind of archive - not just the binary ones.

[boost] Serialiization Review repost with consistent quoting

2002-11-25 Thread Robert Ramey
Date: Sun, 24 Nov 2002 16:28:50 +0100 From: Matthias Troyer [EMAIL PROTECTED] The shared_ptr demo does not compile: boost/shared_ptr.hpp:297: `boost::detail::shared_count boost::shared_ptrA::pn' is private demo_shared_ptr.cpp:183: within this context Why do you want to access a private

Re: [boost] Serialization library review

2002-11-25 Thread Robert Ramey
Date: Mon, 25 Nov 2002 10:41:17 +0100 From: Matthias Troyer [EMAIL PROTECTED] I guess this should be changed to: #ifdef BOOST_HAS_MS_INT64 virtual basic_iarchive operator(int64_t _Val) = 0; virtual basic_iarchive operator(uint64_t _Val) = 0; #endif #ifdef

Re: [boost] Serialiization Review repost with consistent quoting

2002-11-25 Thread Jeremy Maitin-Shepard
On Mon, 2002-11-25 at 20:39, Robert Ramey wrote: As mentioned in previous posts, additional functions e.g. load_array and save_array need to be added to allow efficient serialization of large data sets. why can't this be handled using basic_oarchive::write_binary(void *p, size_t

RE: [boost] Re: Review Request: I/O Manipulators and Adaptors

2002-11-25 Thread Jeff Garland
Should we consider integration with the recent xalloc postings? (I'm just asking, I haven't looked to see is this makes sense) http://aspn.activestate.com/ASPN/Mail/Message/1408266 Why would I put a request for someone else's code? Well, you wouldn't I suppose. But the question was

[boost] Re: Serialization Library Review

2002-11-25 Thread David B. Held
Robert Ramey [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Date: Mon, 25 Nov 2002 11:08:32 +0300 [...] a) a libray gets accepted to boost. b) some time after, someone comes up with a next great improvement c) so he tries to convince the original author to

Re: [boost] Serialization library review

2002-11-25 Thread Matthias Troyer
On Tuesday, November 26, 2002, at 03:01 AM, Robert Ramey wrote: Date: Mon, 25 Nov 2002 10:41:17 +0100 From: Matthias Troyer [EMAIL PROTECTED] I guess this should be changed to: #ifdef BOOST_HAS_MS_INT64 virtual basic_iarchive operator(int64_t _Val) = 0; virtual basic_iarchive

Re: [boost] Re: Sockets

2002-11-25 Thread Pavol Droba
On Mon, Nov 25, 2002 at 04:09:29PM +, Hugo Duncan wrote: Pavol, On Sun, 24 Nov 2002 10:12:36 +0100, Pavol Droba [EMAIL PROTECTED] wrote: Is there an interest to support also non-TCP/IP based protocols like IRDA/TP or raw sockets? I think this should be feasable, though I know

RE: [boost] Re: Re: SocketSetConcept (fd_set wrapper)

2002-11-25 Thread Darryl Green
From: Hamish Mackenzie [mailto:[EMAIL PROTECTED]] I'll change the name to file_descriptor_set. The reason I had left it as socket_set was that I was not sure how to mix SOCKET and files on windows - but htat looks to be easy from your code Ah, I should have pointed out that I have