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

2003-07-10 Thread Douglas Gregor
Subject: [boost] minor nitpick: why signal.hpp instead of signals.hpp? (notext) Probably a mistake. signal.hpp made sense when the library was not in the namespace boost::signals, but signals.hpp makes more sense now. This should probably change. Doug

[boost] Re: Unspecified behaviour in Thread FAQ example

2003-07-10 Thread Daniel Spangenberg
"William E. Kempf" schrieb: > > 20.3.3/8 > > "For templates greater, less, greater_equal, and less_equal, the > specializations for any pointer type yield a total order, even if the > builtin operators <, >, <=, >= do not." Grummph, you are absolutely right, of course, and I should have known i

[boost] Re: functors for taking apart std::pair?

2003-07-10 Thread Andy Sawyer
From: Andy Sawyer <[EMAIL PROTECTED]> To: Boost mailing list <[EMAIL PROTECTED]> Subject: [boost] Re: functors for taking apart std::pair? Date: Thu, 10 Jul 2003 22:10:42 +0100 > "ED" == Edward Diener <[EMAIL PROTECTED]> writes: ED> Marshall Clow wrote: >> I recently had a need for a func

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

2003-07-10 Thread Jeremy Maitin-Shepard
Joaquín Mª López Muñoz wrote: The semantics of std::map (or any other STL associative container) are not overwriting on insertion: instead, if an equivalent element is found, no insertion occurs. This is what my library does, too. Maybe you're confusing here map::operator[] with map::insert. Yes, I

Re: [boost] reading/writing posix_time::time_duration

2003-07-10 Thread Philip Miller
I have a very similar problem. I have attached my message that I posted on 6/26/2003. I patched the date_time library so the default to/from simple string methods use an integral month rather than the string month. Phil Stefan Seefeld wrote: > Jeff Garland wrote: > > On Wed, 09 Jul 2003 09:33:

[boost] Re: functors for taking apart std::pair?

2003-07-10 Thread Ken Alverson
"Marshall Clow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > So, here they are. Are they useful to anyone else? Is there some reason that > they don't already exist? Did I miss them somewhere? > > template > struct first: std::unary_function< std::pair , T1> > { > T1 operator()(

[boost] Re: functors for taking apart std::pair?

2003-07-10 Thread Marshall Clow
At 7:21 AM -0400 7/10/03, David Abrahams wrote: Marshall Clow <[EMAIL PROTECTED]> writes: > So, here they are. Are they useful to anyone else? Is there some reason that they don't already exist? Did I miss them somewhere? template struct first: std::unary_function< std::pair , T1> {

RE: [boost] Boost Bibliography?

2003-07-10 Thread Beman Dawes
At 03:51 AM 7/10/2003, Paul A. Bristow wrote: >Fine. > >Encourage/remind reference submitters to include book ISBN & journal ISSN. >EG Dr Dobbs Journal is ISSN 1044-789X. Yep. Will do. >And DOI if available (Digital Object Identifier) see doi.org - these are >permanent liks which do not change

Re: [boost] Re: Boost Bibliography?

2003-07-10 Thread Beman Dawes
At 12:12 PM 7/10/2003, Rene Rivera wrote: >[2003-07-10] James Curran wrote: > >>How directly must the article relate to Boost? I spend about 4 >>paragraphs discussing Boost & shared_ptr<> in: >>"Access Raw Data with Performance Counters in Visual C++" >>DevX.com: http://www.devx.com/cplus/arti

Re: [boost] Re: Boost Bibliography?

2003-07-10 Thread Beman Dawes
At 11:32 AM 7/10/2003, James Curran wrote: >How directly must the article relate to Boost? I spend about 4 >paragraphs discussing Boost & shared_ptr<> in: >"Access Raw Data with Performance Counters in Visual C++" >DevX.com: http://www.devx.com/cplus/article/7951 Good question. Maybe we need d

Re: [boost] Re: Unspecified behaviour in Thread FAQ example

2003-07-10 Thread William E. Kempf
Daniel Spangenberg said: > Hello William! > > "William E. Kempf" schrieb: > >> You're correct, and the solution is simply to replace the < operator >> with std::less calls. > > You mean the std::less specialization on boost::mutex? (I wasn't aware, > that you provide total ordering on mutexes). Ot

Re: [boost] smart_assert and range_ template

2003-07-10 Thread John Torjo
- Original Message - From: "popov" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 08, 2003 8:03 PM Subject: [boost] smart_assert and range_ template > (not sure it's the right place to post this, but it seems smart_assert is > (or will) be part of boost, and I can't get

Re: [boost] mpl::if_ and ICE triggered on GNU g++-cvs-today

2003-07-10 Thread Aleksey Gurtovoy
Markus Werle wrote: > Hi! Hi Markus, > > Though Intel C++ compiles this without complaint > gcc fails with ICE on this code snippet, which is > preprocessor output of boost code: > > struct void_ {}; > > template< > bool C > , typename T1 > , typename T2 > > > struct if_c > { >

Re: [boost] Re: Boost Bibliography?

2003-07-10 Thread Rene Rivera
[2003-07-10] James Curran wrote: >How directly must the article relate to Boost? I spend about 4 >paragraphs discussing Boost & shared_ptr<> in: >"Access Raw Data with Performance Counters in Visual C++" >DevX.com: http://www.devx.com/cplus/article/7951 I have a similar question; is online o

Re: [boost] Re: mpl::if_ and ICE triggered on GNU g++-cvs-today

2003-07-10 Thread Martin Wille
BOOST_NO_CWCTYPE That is the output for gcc-3.4 from today? I've run the configure script with gcc version 3.4 20030710 (ie. from today) and got these results: #define BOOST_MSVC6_MEMBER_TEMPLATES #define BOOST_HAS_UNISTD_H #define BOOST_HAS_STDINT_H #define BOOST_HAS_SIGACTION #d

[boost] Re: Boost Bibliography?

2003-07-10 Thread James Curran
How directly must the article relate to Boost? I spend about 4 paragraphs discussing Boost & shared_ptr<> in: "Access Raw Data with Performance Counters in Visual C++" DevX.com: http://www.devx.com/cplus/article/7951 -- Truth, James Curran www.noveltheory.com (personal) www.njtheater.com (pr

[boost] Re: mpl::if_ and ICE triggered on GNU g++-cvs-today

2003-07-10 Thread Markus Werle
There is something wrong with the config. Obviously the code should use the BOOST_MPL_AUX_VALUE_WKND(C)::value but it seems the output of my configure run is not included. I thought make CXXFLAGS="\ -DBOOST_SITE_CONFIG=/opt/FREE-SOFTWARE/boost-1.30.0/libs/config/user.hpp -DBOOST_NO_COMPILER

[boost] Re: Unspecified behaviour in Thread FAQ example

2003-07-10 Thread Daniel Spangenberg
Hello William! "William E. Kempf" schrieb: > You're correct, and the solution is simply to replace the < operator with > std::less calls. You mean the std::less specialization on boost::mutex? (I wasn't aware, that you provide total ordering on mutexes). Otherwise I don't see the difference, I h

[boost] Re: mpl::if_ and ICE triggered on GNU g++-cvs-today

2003-07-10 Thread Daniel Frey
Markus Werle wrote: A resolution with which g++ is happy again is: struct if_ { private: enum { value = static_cast(C::value) }; typedef if_c< value , T1 , T2 > almost_type_; etc. Does this solution have any impact on compilation time? Most probably. I haven'

Re: [boost] Unspecified behaviour in Thread FAQ example

2003-07-10 Thread William E. Kempf
Daniel Spangenberg said: > Hello, Boosters! > > Today I stumbled across an unspecified behaviour which can be caused by > the example class "counter" of the Boost thread FAQ. > The errounous lines are inside the copy assignment operator of the > class: > > boost::mutex::scoped_lock lock1(&m_

[boost] mpl::if_ and ICE triggered on GNU g++-cvs-today

2003-07-10 Thread Markus Werle
Hi! Though Intel C++ compiles this without complaint gcc fails with ICE on this code snippet, which is preprocessor output of boost code: struct void_ {}; template< bool C , typename T1 , typename T2 > struct if_c { typedef T1 type; }; template< typename T1 ,

Re: [boost] reading/writing posix_time::time_duration

2003-07-10 Thread Stefan Seefeld
Jeff Garland wrote: On Wed, 09 Jul 2003 09:33:44 -0400, Stefan Seefeld wrote hi there, what is the suggested way to persist a time_duration into a string ? I tried 'to_iso_string' but there is no corresponding 'duration_from_iso_string'. Shouldn't that exist (if only for symmetry) ? Yes it sh

Re: [boost] reading/writing posix_time::time_duration

2003-07-10 Thread Jeff Garland
On Wed, 09 Jul 2003 09:33:44 -0400, Stefan Seefeld wrote > hi there, > > what is the suggested way to persist a time_duration into a string ? > I tried 'to_iso_string' but there is no corresponding > 'duration_from_iso_string'. Shouldn't that exist (if only for > symmetry) ? Yes it should be th

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

2003-07-10 Thread Joaquín Mª López Muñoz
Jeremy Maitin-Shepard ha escrito: > Joaquín Mª López Muñoz wrote: > > > > > This is a no-no policy. Collision can happen with more than one element. > > Following this approach could result in an single update sweeping off > > half the elements of the container :) I don't think users of the

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

2003-07-10 Thread David Abrahams
Alexander Nasonov <[EMAIL PROTECTED]> writes: > Sometimes it's fine to have an introspection only at runtime. I just want to > avoid duplications of class descriptions by multiple libraries. For > example, Python and luabind could share common introspection information. > This is why I'm using

[boost] Re: smart_assert and range_ template

2003-07-10 Thread Daniel Spangenberg
Hello Popov! popov schrieb: > (not sure it's the right place to post this, but it seems smart_assert is > (or will) be part of boost, and I can't get the author email addresses. The > article is: > > http://www.cuj.com/documents/s=8464/cujcexp0308alexandr/) > > Here's an excerpt of some code: I

[boost] Re: Boost Bibliography?

2003-07-10 Thread Edward Diener
John Maddock wrote: >> Attached is a quick draft of a "Boost Bibliography" page. Each entry >> is bookmarked so it can be referenced directly from other web pages. >> >> Comments? > > A good idea, can you add to that the article in > libs/type_traits/c++_type_traits.htm which was in the October 200

[boost] Unspecified behaviour in Thread FAQ example

2003-07-10 Thread Daniel Spangenberg
Hello, Boosters! Today I stumbled across an unspecified behaviour which can be caused by the example class "counter" of the Boost thread FAQ. The errounous lines are inside the copy assignment operator of the class: boost::mutex::scoped_lock lock1(&m_mutex < &other.m_mutex ? m_mutex : other

[boost] Re: functors for taking apart std::pair?

2003-07-10 Thread Edward Diener
Marshall Clow wrote: > I recently had a need for a functor to return a component of a > std::pair, and I was > surprised to see that they didn't exist either in the standard > library or in boost. Matt Austern lists in his excellent book "Generic Programming and the STL" the functors select1st and

Re: [boost] Boost Bibliography?

2003-07-10 Thread John Maddock
> Attached is a quick draft of a "Boost Bibliography" page. Each entry is > bookmarked so it can be referenced directly from other web pages. > > Comments? A good idea, can you add to that the article in libs/type_traits/c++_type_traits.htm which was in the October 2000 issue of Dr Dobb's Journal,

[boost] Re: functors for taking apart std::pair?

2003-07-10 Thread David Abrahams
Marshall Clow <[EMAIL PROTECTED]> writes: > I recently had a need for a functor to return a component of a > std::pair, and I was > surprised to see that they didn't exist either in the standard library > or in boost. > > So, here they are. Are they useful to anyone else? Is there some reason that

RE: [boost] Re: Re: test_fp_comparisons and rounding errors

2003-07-10 Thread Paul A. Bristow
I suggest you show how to get an absolute comparison in the documentation. I have found absolute comparisons most useful (but also relative sometimes). Do I understand correctly that BOOST_CHECK_CLOSE(v1, v2, 2. * std::numeric_limits::epsilon() ); would check that the absolute difference between

RE: [boost] Boost Bibliography?

2003-07-10 Thread Paul A. Bristow
Fine. Encourage/remind reference submitters to include book ISBN & journal ISSN. EG Dr Dobbs Journal is ISSN 1044-789X. And DOI if available (Digital Object Identifier) see doi.org - these are permanent liks which do not change if the underlying host server changes name or address. A program 're