RE: [boost] Boost License Issues

2002-11-20 Thread Paul A. Bristow
I am sure legal views on this would be useful, but I fear that if you ask n lawyers for their opinion, you will end up with more than n+1 opinions! Can't we tap some of these firms that are worrying about this for their legal views, for what they are worth? Paul Paul A Bristow, Prizet

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

2002-11-20 Thread Vincent Finn
Forwarded to main Boost list - that's the more appropriate venue for discussions of possible additions. -- Jim Hyslop boost-users moderator. -Original Message- From: alexei_novakov [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 7:05 PM To: [EMAIL PROTECTED] Subject:

[boost] singlton library?

2002-11-20 Thread Yakov Bachmutsky
Hi,I've posted a proposal of a singleton library (among others) maybe a monthago and as far as I remember it was ignored so I post it again with its nameas the subject, hoping this will help, and some explanations:1. I use singletonclass T to have a singleton instance of a class in

Re: [boost] Re: new initialization lib, any interest?

2002-11-20 Thread Thorsten Ottosen
- Original Message - From: Rob Stewart [EMAIL PROTECTED] From: Thorsten Ottosen [EMAIL PROTECTED] From: Yitzhak Sapir [EMAIL PROTECTED] On Wed, 9 Oct 2002, Thorsten Ottosen wrote: The problem of missing a value in the assignment to the map is hypothetical. If I wan't to

Re: [boost] ublas regression test problems

2002-11-20 Thread Toon Knapen
On Wednesday 20 November 2002 06:35, Aleksey Gurtovoy wrote: P.S.: Why aren't there any regression tests for mpl? There are, they just not included into the batch. Probably they should be; there are some issues, mainly with the number of tests (currently ~60 and more to come) - simply

[boost] lexical_cast and bool

2002-11-20 Thread Roland Richter
Dear all, just a minor issue for the upcoming(?) lexical_cast in 1.30.0: lexical_castbool( true ) returns false, since std::ios::boolalpha is not set by default. How about changing this? - Roland ___ Unsubscribe other changes:

[boost] Serialization Library: review

2002-11-20 Thread Gennadiy Rozental
Hi, After spending some time with library, looking through docs and code, compiling it and comparing with my expectations I see following 5 major issues with submitted library: [Issue 1] Registration/reflection facility should be completely separated from serialization implementation and became

Re: [boost] lexical_cast and bool

2002-11-20 Thread Neal D. Becker
Roland == Roland Richter [EMAIL PROTECTED] writes: Roland Dear all, Roland just a minor issue for the upcoming(?) lexical_cast in 1.30.0: Roland lexical_castbool( true ) returns false, Roland since std::ios::boolalpha is not set by default. Roland How about changing this?

RE: [boost] [MPL] Several Questions

2002-11-20 Thread Aleksey Gurtovoy
David A. Greene wrote: I'm starting to explore mpl a bit and I ran into a roadblock. If I have a template that takes an argument that can be a sequence (e.g. mpl::vector) or a regular old type, is there any way, short of specialization, to determine whether the parameter is a sequence?

Re: [boost] shared_ptr deleter introspection?

2002-11-20 Thread David Abrahams
Peter Dimov [EMAIL PROTECTED] writes: From: David Abrahams [EMAIL PROTECTED] [get_deleter] I think that considering the alternatives require: 1. Periodic map sweeps (we might as well be doing GC ;-), or 2. Solving the constructor forwarding problem for tacking on additional

[boost] [PATCH] Boost.Format: making it work without exceptions

2002-11-20 Thread Lars Gullik Bjønnes
This patch makes the Boost.Format library work when exceptions is not present. It is done the same way as with the smart pointers. Please apply. Index: boost/format/feed_args.hpp === RCS file:

Re: [boost] Serialization Library: review

2002-11-20 Thread Matthias Troyer
On Wednesday, November 20, 2002, at 01:42 PM, Gennadiy Rozental wrote: [Issue 3] Library seems to hardcode important part of functionality that users may want to overwrite. Here I refer in most part to archive/object preamble. Major [Issue 3]: Submitted library is somewhat limited in a

[boost] BOOST_CHECK_EQUAL() dangers

2002-11-20 Thread Markus Schöpflin
Hi, the (really useful!) boost test library provides the test tool macro BOOST_CHECK_EQUAL() which checks two values for equality. I just learned the hard way that the following does not do what one would expect. char const *p = 0; BOOST_CHECK_EQUAL(p, p); On my system, this results in a test

RE: [boost] [PATCH] Boost.Format: making it work without exceptions

2002-11-20 Thread Bjorn . Karlsson
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] This patch makes the Boost.Format library work when exceptions is not present. It is done the same way as with the smart pointers. Applied, thanks! Bjorn ___ Unsubscribe other changes:

Re: [boost] Re: Copy Constructible Concept

2002-11-20 Thread Douglas Gregor
On Saturday 16 November 2002 12:24 pm, Gennaro Prota wrote: Sorry for the late reply (it's just my timezone). You wrote: I don't see the contradiction here. 5.2.10/7 says that you can cast from a T pointer to a U pointer and back to a T pointer and get the original pointer back.

Re: [boost] Boost License Issues

2002-11-20 Thread Andrew Koenig
Keith Gorlen, the author of the NIH (National Institutes of Health) class library, told me once that his work, being a ``US Government work'' is in the public domain and *cannot* be copyrighted or licensed. That is, *nothing* that anyone does with his work can legally prevent anyone from

Re: [boost] BOOST_CHECK_EQUAL() dangers

2002-11-20 Thread David Abrahams
Markus Schöpflin [EMAIL PROTECTED] writes: 1. Just document it. Not so good, IMHO. 2. Document the special case and add a check for NULL pointers before calling strcmp(). 3. Remove the special case alltogether. After all, I might want to check that the pointers are equal and not the string

Re: [boost] Boost License Issues

2002-11-20 Thread Joel Young
From: Andrew Koenig [EMAIL PROTECTED] an issue here--that all FSF wanted was to be able to put the work under GPL (which would also be impossible for a public-domain work). The exact public domain work can't be copyrighted, however for all practical purposes that is meaningless. It can be

Re: [boost] soureforge

2002-11-20 Thread David Abrahams
Matt Hurd [EMAIL PROTECTED] writes: 1.27 is the latest on sourcefourge. Would pay to either remove it or put 1.29 up. How much? ;-) I removed 1.27 -- David Abrahams [EMAIL PROTECTED] * http://www.boost-consulting.com Boost support, enhancements, training, and

[boost] Do we need a boost_exception class or idiom?

2002-11-20 Thread Beman Dawes
Boost libraries often define exception classes, usually derived from the standard library exception hierarchy. Users sometimes ask for further refinement, so the library ends up with its own hierarchy. For example, the Filesystem library started out with boost::filesystem::filesystem_error,

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

2002-11-20 Thread Alexei Novakov
Vincent Finn [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Forwarded to main Boost list - that's the more appropriate venue for discussions of possible additions. -- Jim Hyslop boost-users moderator. -Original Message- From: alexei_novakov

[boost] Re: Re: Re: Re: STL applied to disk

2002-11-20 Thread Bohdan
David Abrahams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Bohdan [EMAIL PROTECTED] writes: Do you mean that *i returns proxy (not object or reference) ? Can you give some link where i can find rationale for this ? A rationale? No, them's the rules. The

[boost] Check digits

2002-11-20 Thread Paul A. Bristow
Driven by an local requirement, I have recently coded a Verhoeff decimal check digit program, based on the Java calculator embedded in http://www.augustana.ab.ca/~mohrj/algorithms/checkdigit.html by Jonathon Mohr, [EMAIL PROTECTED] Augustana University College, 4901 - 46 Ave., Camrose, AB T4V 2R3

Re: [boost] Re: Re:Re:reinterpret_castconstshared_ptrconstT[wasRe:const-correctnessas functionargument]

2002-11-20 Thread Rob Stewart
From: Eric Woodruff [EMAIL PROTECTED] Every reference I can find excludes pointer conversions from being implementation defined. They all (even the standard) specifically treat pointer conversions differently (clause 7) than pointer-integer-pointer conversions. This is because creating an

Re: [boost] ublas regression test problems

2002-11-20 Thread Beman Dawes
At 01:32 PM 11/20/2002, Toon Knapen wrote: On Wednesday 20 November 2002 06:35, Aleksey Gurtovoy wrote: P.S.: Why aren't there any regression tests for mpl? There are, they just not included into the batch. Probably they should be; there are some issues, mainly with the number of tests

RE: [boost] ublas regression test problems

2002-11-20 Thread Beman Dawes
At 06:35 AM 11/20/2002, Aleksey Gurtovoy wrote: because ublas doesn't depend from mpl. So I've to assume, that somebody is changing either boost.config, boost.type_traits, boost.smart_ptr or boost.timer. Hmm, compiles fine for me on the clean CVS get (ignoring test31/32.cpp errors, see the

[boost] Re: [MPL] Several Questions

2002-11-20 Thread Gennadiy Rozental
David A. Greene wrote: I'm starting to explore mpl a bit and I ran into a roadblock. If I have a template that takes an argument that can be a sequence (e.g. mpl::vector) or a regular old type, is there any way, short of specialization, to determine whether the parameter is a sequence?

Re: [boost] Do we need a boost_exception class or idiom?

2002-11-20 Thread David Abrahams
Fernando Cacciola [EMAIL PROTECTED] writes: I'm not sure if a boost exception class is *needed*, but I see no problem in having one. Anyway, IIF such an exception class is defined, I *strongly* encourage (as I did in the past) that it provides: virtual void raise() const { #ifndef

Re: [boost] Do we need a boost_exception class or idiom?

2002-11-20 Thread David Abrahams
William E. Kempf [EMAIL PROTECTED] writes: Fernando Cacciola said: I'm not sure if a boost exception class is *needed*, but I see no problem in having one. Anyway, IIF such an exception class is defined, I *strongly* encourage (as I did in the past) that it provides: virtual void raise()

Re: [boost] Do we need a boost_exception class or idiom?

2002-11-20 Thread David Abrahams
Beman Dawes [EMAIL PROTECTED] writes: The bigger issue is whether or not Boost should have a usual way of defining error exceptions thrown by Boost libraries Probably not; std::exception works well enough. with raise() being one of the issues to be dealt with. Definitely not. That's not a

[boost] Re: BOOST_CHECK_EQUAL() dangers

2002-11-20 Thread Gennadiy Rozental
1. Just document it. Not so good, IMHO. 2. Document the special case and add a check for NULL pointers before calling strcmp(). 3. Remove the special case alltogether. After all, I might want to check that the pointers are equal and not the string they point to. This might be the best

[boost] Re: BOOST_CHECK_EQUAL() dangers

2002-11-20 Thread Tanton Gibbs
1. Just document it. Not so good, IMHO. 2. Document the special case and add a check for NULL pointers before calling strcmp(). 3. Remove the special case alltogether. After all, I might want to check that the pointers are equal and not the string they point to. This might be the

Re: [boost] 'function' idea

2002-11-20 Thread David Abrahams
Paul Mensonides [EMAIL PROTECTED] writes: [This is getting way off-topic for Boost. We should take this off-line or over to clc++m) I'm done anyway. I've already made my case. But you made it in a forum where it can't make much difference. If you don't post this to csc++ it's too bad,

Re: [boost] Do we need a boost_exception class or idiom?

2002-11-20 Thread William E. Kempf
David Abrahams said: William E. Kempf [EMAIL PROTECTED] writes: Fernando Cacciola said: template typename T, typename P1 void raise(const P1 p1) { #ifndef BOOST_NO_EXCEPTIONS throw T(p1); #endif } // other such overloads if needed void foo() { raisestd::logic_error(my logic

Re: [boost] Do we need a boost_exception class or idiom?

2002-11-20 Thread David Abrahams
William E. Kempf [EMAIL PROTECTED] writes: There are workarounds for that problem. See http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/lwg-closed.html#254 Thanks for the link. Comments: * I personally don't agree with the rationale that not throwing bad_alloc when constructing from a string is

Re: [boost] Do we need a boost_exception class or idiom?

2002-11-20 Thread William E. Kempf
David Abrahams said: William E. Kempf [EMAIL PROTECTED] writes: There are workarounds for that problem. See http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/lwg-closed.html#254 Thanks for the link. Comments: * I personally don't agree with the rationale that not throwing bad_alloc when

Re: [boost] Re: [MPL] Several Questions

2002-11-20 Thread David A. Greene
Gennadiy Rozental wrote: 1. merge the sequences. That's easy. 2. Eliminate the duplicates (for example like Loki is doing) That's hard to do efficiently. My MC++D book is packed away at the moment. Can you refresh my memory as to the solution there? Is it better then O(n^2)?