[boost] minor nitpick: why signal.hpp instead of signals.hpp? (notext)

2003-07-07 Thread Dave Gomboc
___ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Re: [boost] [MPL] for_each broken with empty list<>'s

2003-07-07 Thread Aleksey Gurtovoy
Thomas Wenisch wrote: > Hi, Hi Thomas, First of all, thanks for the report. > > for_each seems to be unable to deal with empty lists, or lists that > are built by push_front on an empty list. However, vectors work > fine. Here is code which demonstrates the problem. Replacing list with > vect

Re: [boost] Re: Interest in multiindex_set?(again)

2003-07-07 Thread JOAQUIN LOPEZ MU?Z
Hi Beman, - Mensaje Original - [...] > * The "multiindex_set" name seems awkward to me. Maybe > "indexed_set" or > "set_index"? I don't like the name either, and would be happy if someone comes with something better. Nevertheless, I don't think indexed_set is a good choice: when pickin

RE: [boost] test_fp_comparisons and rounding errors

2003-07-07 Thread Rozental, Gennadiy
> Above form wouldn't should > mismatched values and this is most important. I meant: Above form wouldn't *show* mismatched values and this is most important. Gennadiy. - ___ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boos

RE: [boost] Re: test_fp_comparisons and rounding errors

2003-07-07 Thread Rozental, Gennadiy
> A half-way solution is to have something like: > > BOOST_CHECK_EQUAL_NUMBERS(x,y,IsEqual) > > and let users specify their own Preciates. There is BOOST_CHECK_PREDICATE > By default, the Test library could provide > a straight-forward ABSOLUTE-ERROR comparator: By default, the Test library p

RE: [boost] test_fp_comparisons and rounding errors

2003-07-07 Thread Rozental, Gennadiy
> >What's most of the time needed is relative precision. > > > >So, numerical gurus: how can one express "a equals b within > 0.1%" over >the whole range of floating point numbers? If > that can be done, it would >be a nice useful routine. > > >bool approximately_equal(double lhs, double

[boost] Updated Boost.Random to TR proposal

2003-07-07 Thread Jens Maurer
I've updated the current Boost.Random CVS to the interface contained in the C++ library TR proposal: http://std.dkuug.dk/jtc1/sc22/wg21/docs/papers/2003/n1452.html The boost documentation has not yet been updated, I hope to be able to do that later this week. Reading the TR proposal should g

[boost] Re: test_fp_comparisons and rounding errors

2003-07-07 Thread Fernando Cacciola
Beman Dawes <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > At 02:22 PM 7/7/2003, Rozental, Gennadiy wrote: > > >I could probably prohibit usage of CHECK_CLOSE with number of rounding > >errors provided. > >Is there any other general recommendations how to choose the tolerance to >

[boost] Re: Interest in multiindex_set?(again)

2003-07-07 Thread Beman Dawes
At 03:15 PM 7/7/2003, Joaquín Mª López Muñoz wrote: >Please find some preliminary documentation for multiindex_set >at: > >http://groups.yahoo.com/group/boost/files/multiindex.zip Hi Joaquín, I took a quick look at multiindex.html, and found it quite interesting. It appears to meet a common need

Re: [boost] problems with config for intel-7.1 on Linux

2003-07-07 Thread Martin Wille
John Maddock wrote: Looking at the boost regression test results, it seems that Intel on linux defines _WCHAR_T (which is what the EDG front-end documentation specifies for wchar_t support), so I used that as the test - should be in cvs now - can you check that it does the right thing? integer_tra

RE: [boost] test_fp_comparisons and rounding errors

2003-07-07 Thread Beman Dawes
At 02:22 PM 7/7/2003, Rozental, Gennadiy wrote: >I could probably prohibit usage of CHECK_CLOSE with number of rounding >errors provided. >Is there any other general recommendations how to choose the tolerance to >FP computation correctness checking? There has been some recent discussion on com

Re: [boost] Re: Re: Re: [In response to FernandoCacciola]Re:Interestinmultiindex_set?(again)

2003-07-07 Thread Joaquín Mª López Muñoz
Hi Fernando (and all others) Please find some preliminary documentation for multiindex_set at: http://groups.yahoo.com/group/boost/files/multiindex.zip The documentation is far from complete, but a reasonably complete rationale is given which hopefully will guide the reader through the design co

RE: [boost] test_fp_comparisons and rounding errors

2003-07-07 Thread Rozental, Gennadiy
> Let t be tmp and e? be error values (smaller than ulp/2). > > rounded(rounded(t*t) - t) > = ((t*t) * (1+e1) - t) * (1+e2) > = t*t - t + t*t * (e1+e2+e1*e2) - t*e2 > > So how much is the relative error? For example, if e1=ulp/2 > and e2=0, the absolute error reaches t*t*ulp/2 = 0.605*ulp.

[boost] [MPL] for_each broken with empty list<>'s

2003-07-07 Thread Thomas Wenisch
Hi, for_each seems to be unable to deal with empty lists, or lists that are built by push_front on an empty list. However, vectors work fine. Here is code which demonstrates the problem. Replacing list with vector makes the code compile. #include #include #include #include #include #inclu

[boost] Re: Visitor-based framework to describe classes with exampleofobjectdump in XML format

2003-07-07 Thread David Abrahams
"Joel de Guzman" <[EMAIL PROTECTED]> writes: > Alexander Nasonov <[EMAIL PROTECTED]> wrote: > >>> From user point of view it's easy. Every class is described using intuitive >> class-decl-like style: >> >> void describe_Driver(descriptor& class_) >> { >> class_("Driver").derived_from() >>

Re: [boost] Re: Re: is_nan

2003-07-07 Thread Joel de Guzman
Fernando Cacciola <[EMAIL PROTECTED]> wrote: > Fernando Cacciola <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> >> Thanks to Gabriel we may have an is_nan() right now. >> > Oops! > It was Joel de Guzman who offered his is_nan() implementation. > > Sorry Joel :-) No problem. I

[boost] Re: Re: is_nan

2003-07-07 Thread Fernando Cacciola
Fernando Cacciola <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Thanks to Gabriel we may have an is_nan() right now. > Oops! It was Joel de Guzman who offered his is_nan() implementation. Sorry Joel :-) Fernando ___ Unsubscribe &

[boost] Re: test_fp_comparisons and rounding errors

2003-07-07 Thread Fernando Cacciola
IMHO, the problem with test_fp_comparisons is that it is fundamentally flawed. As Guillaume said, ULPs just don't add. The approach of trying to bound the relaive error based on the number of roundings, which is what is intended, just doesn't work, and it won't work no matter how you try the adjust

Re: [boost] Re: no semaphores in boost::thread

2003-07-07 Thread William E. Kempf
Jon Biggar said: > There is actually one case that needs a semaphore that has no reasonable > alternative in pthreads. The only pthread synchronization operation > that is asynch-reentrant safe (i.e. can be called from a signal handler) > is signaling a pthread semaphore. > > It would be nice

Re: [boost] problems with config for intel-7.1 on Linux

2003-07-07 Thread John Maddock
> I found a problem with the intel configuration for Linux. > For that compiler the macro BOOST_NO_INTRINSIC_WCHAR_T > gets defined although the compiler has an intrinsic wchar_t. > > Neither _WCHAR_T_DEFINED nor _NATIVE_WCHAR_T_DEFINED is > defined on Linux. __WCHAR_TYPE__ is defined to int. Never

Re: [boost] Visitor-based framework to describe classes with exampleofobjectdump in XML format

2003-07-07 Thread Joel de Guzman
Alexander Nasonov <[EMAIL PROTECTED]> wrote: >> From user point of view it's easy. Every class is described using intuitive > class-decl-like style: > > void describe_Driver(descriptor& class_) > { > class_("Driver").derived_from() > [ > member(&Driver::licence_id, "licence_id"),

[boost] Re: no semaphores in boost::thread

2003-07-07 Thread Alexander Terekhov
Jon Biggar wrote: [...] > There is actually one case that needs a semaphore that has no reasonable > alternative in pthreads. The only pthread synchronization operation > that is asynch-reentrant safe (i.e. can be called from a signal handler) > is signaling a pthread semaphore. There's no such

[boost] Visitor-based framework to describe classes with example ofobjectdump in XML format

2003-07-07 Thread Alexander Nasonov
This framework might be interested to those who wishes to read and write members of classes using member-names. Stuff like serialization, messaging, automatic binding of class members with GUI/Web forms and OODBs (although they have ODMG C++ binding). >From user point of view it's easy. Every c

[boost] Re: string conversion methods

2003-07-07 Thread Russell Hind
Jeff Garland wrote: In date-time there are several 'to_string' functions that provide different ouput formats so a single 'str()' method isn't going to be enough. As for c_str(), you can use this once you have std::string. From my view there is no point in trying to force fit this functionality

Re: [boost] [BGL] iteration macros

2003-07-07 Thread Vladimir Prus
Hi Csaba, > Iteration macros did not work without some 'using' directives because it > uses functions from boots but actually without the boost:: qualifier. > > E.g. BGL_FORALL_VERTICES(v,g,graph_t) did not compile unless you have using > namespace boost or using namespace boost::vertices before th

[boost] [BGL] iteration macros

2003-07-07 Thread Csaba Szepesvari
Hi, Iteration macros did not work without some 'using' directives because it uses functions from boots but actually without the boost:: qualifier. E.g. BGL_FORALL_VERTICES(v,g,graph_t) did not compile unless you have using namespace boost or using namespace boost::vertices before the invocation o