[boost] Variant Library Accepted

2003-03-09 Thread Jeff Garland
All -- The Variant library by Eric Friedman and Itay Maman has been accepted into boost. I have summarized the main issues/discussion points below. [Interface/Design] -- There was a long discussion about a better name for 'extract' and whether it should be a member or free function. I'm n

Re: [boost] [mpl] Patch for mpl::aux::msvc_eti_base for MSVC7.0

2003-03-09 Thread Aleksey Gurtovoy
Andreas Huber wrote: > Hi Aleksey Hi Andreas, > > Sometimes I have to pass an abstract class to mpl::aux::msvc_eti_base. > On MSVC7.0 the compiler complains with the following error: > > d:\Data\boostCvsRoot\boost\boost\mpl\aux_\is_msvc_eti_arg.hpp(48) : > error C2259: 'boost::mpl::inherit2' : ca

Re: [boost] Re: Meta programming 'debug' mode.

2003-03-09 Thread Greg Colvin
At 06:23 PM 3/9/2003, David Abrahams wrote: >is ";" legal where a declaration is expected? > >class X >{ > ; // legal? >}; > >Comeau says it isn't: > >MODE:strict errors C++ > >"ComeauTest.c", line 3: error: extra ";" ignored, >In C: A function definition does not end with a semicolon >

Re: [boost] Re: Meta programming 'debug' mode.

2003-03-09 Thread Terje Slettebø
>From: "David Abrahams" <[EMAIL PROTECTED]> > Terje Slettebø <[EMAIL PROTECTED]> writes: > > >>From: "David Abrahams" <[EMAIL PROTECTED]> > > > >> I like the basic idea, but are you sure it will work in all the > >> contexts where BOOST_STATIC_ASSERT works? I think BOOST_STATIC_ASSERT > >> functi

[boost] Re: Meta programming 'debug' mode.

2003-03-09 Thread David B. Held
"Jaap Suter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [...] > The proposal doesn't say anything about a compile time release and > debug mode. I guess one could always define the 'static_assert' > keyword to be nothing, but perhaps compiler support for disabling > and enabling

[boost] Re: Re: Meta programming 'debug' mode.

2003-03-09 Thread Jaap Suter
Hi, I've attached a version of static_assert.hpp that I would find rather useful. The minimal changes are at the bottom of the file. It also had me thinking about the static_assert proposal: http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/papers/2002/n1381.htm The proposal doesn't say anything about

[boost] Re: Re: Meta programming 'debug' mode.

2003-03-09 Thread Jaap Suter
> Then how about simply: > > #ifndef STATIC_NDEBUG > #define BOOST_STATIC_ASSERT2(e) BOOST_STATIC_ASSERT(e) > #else > #define BOOST_STATIC_ASSERT2(e) > #endif I guess that ';' would work in most cases. I can't think of a case where it wouldn't, although it can give warnings on some compile

Re: [boost] Re: Meta programming 'debug' mode.

2003-03-09 Thread David Abrahams
Terje Slettebø <[EMAIL PROTECTED]> writes: >>From: "David Abrahams" <[EMAIL PROTECTED]> > >> Dirk Gerrits <[EMAIL PROTECTED]> writes: >> >> > Dirk Gerrits wrote: >> > > >> > > I'd say something like: >> > > >> > > #ifdef STATIC_NDEBUG >> > > #define BOOST_STATIC_ASSERT2(e) BOOST_STATIC_AS

Re: [boost] Re: Meta programming 'debug' mode.

2003-03-09 Thread Terje Slettebø
>From: "David Abrahams" <[EMAIL PROTECTED]> > Dirk Gerrits <[EMAIL PROTECTED]> writes: > > > Dirk Gerrits wrote: > > > > > > I'd say something like: > > > > > > #ifdef STATIC_NDEBUG > > > #define BOOST_STATIC_ASSERT2(e) BOOST_STATIC_ASSERT(e) > > > #else > > > #define BOOST_STATIC_A

Re: [boost] Re: Meta programming 'debug' mode.

2003-03-09 Thread David Abrahams
Dirk Gerrits <[EMAIL PROTECTED]> writes: > Dirk Gerrits wrote: > > > > I'd say something like: > > > > #ifdef STATIC_NDEBUG > > #define BOOST_STATIC_ASSERT2(e) BOOST_STATIC_ASSERT(e) > > #else > > #define BOOST_STATIC_ASSERT2(e) (void(e)) > > #endif > > > > Analogous to . > > Arg

Re: [boost] Re: New stuff into sandbox and Yahoo files section

2003-03-09 Thread David Abrahams
Gennaro Prota <[EMAIL PROTECTED]> writes: > On Sun, 09 Mar 2003 09:11:05 -0500, David Abrahams > <[EMAIL PROTECTED]> wrote: > >>Gennaro Prota <[EMAIL PROTECTED]> writes: >> >>> On Sat, 08 Mar 2003 15:31:58 -0500, David Abrahams >>> <[EMAIL PROTECTED]> wrote: >>> >>> "Make 'em MPL-compatible me

Re: [boost] Re: io operations for stl containers?

2003-03-09 Thread Terje Slettebø
>From: "Jason House" <[EMAIL PROTECTED]> > Terje Slettebø wrote: > > > > >From: "Jason House" <[EMAIL PROTECTED]> > > > > > Is there even a way to specify/change that? > > > > It isn't currently, as the fundamental types aren't handled as composite > > types, and therefore aren't formatted using

Re: [boost] Re: io operations for stl containers?

2003-03-09 Thread Terje Slettebø
>From: "Vladimir Prus" <[EMAIL PROTECTED]> > Terje Slettebø wrote: > > > Right. There was a suggestion for allowing generic formats, though, using > > the same format for all instantiations of a template. The question is how > > to do it. The current version stores the format for each specific typ

[boost] [mpl] Patch for mpl::aux::msvc_eti_base for MSVC7.0

2003-03-09 Thread Andreas Huber
Hi Aleksey Sometimes I have to pass an abstract class to mpl::aux::msvc_eti_base. On MSVC7.0 the compiler complains with the following error: d:\Data\boostCvsRoot\boost\boost\mpl\aux_\is_msvc_eti_arg.hpp(48) : error C2259: 'boost::mpl::inherit2' : cannot instantiate abstract class ... The follow

[boost] Re: Meta programming 'debug' mode.

2003-03-09 Thread Jaap Suter
I guess you meant it to be the other way around: > #ifdef STATIC_NDEBUG > #define BOOST_STATIC_ASSERT2(e) (void(e)) > #else > #define BOOST_STATIC_ASSERT2(e) BOOST_STATIC_ASSERT(e) > #endif I like the solution, but I'm wondering whether mabye this could be included in the static_assert he

[boost] Re: Meta programming 'debug' mode.

2003-03-09 Thread Dirk Gerrits
Dirk Gerrits wrote: > Jaap Suter wrote: > >> Hi, >> >> In my own meta-programming I tend to use a lot of static_asserts and >> concept >> checks. However, these do have a negative impact on my compile-times. >> Take, >> for example, a meta-function that takes a type-list as its parameter. >> Assume

[boost] Re: Meta programming 'debug' mode.

2003-03-09 Thread Dirk Gerrits
Jaap Suter wrote: Hi, In my own meta-programming I tend to use a lot of static_asserts and concept checks. However, these do have a negative impact on my compile-times. Take, for example, a meta-function that takes a type-list as its parameter. Assume a pre-condition is that the list may not be em

[boost] Meta programming 'debug' mode.

2003-03-09 Thread Jaap Suter
Hi, In my own meta-programming I tend to use a lot of static_asserts and concept checks. However, these do have a negative impact on my compile-times. Take, for example, a meta-function that takes a type-list as its parameter. Assume a pre-condition is that the list may not be empty. What I can do

Re: [boost] EH in the regression tools

2003-03-09 Thread David Abrahams
Beman Dawes <[EMAIL PROTECTED]> writes: > At 10:50 AM 3/9/2003, David Abrahams wrote: > > > >Just browsing, I noticed: > > > > if ( !file ) > >throw fs::filesystem_error( "process_jam_long.cpp", > > pth, "can't open output file" ); > > > >But I can't find a catch bloc

[boost] Re: New stuff into sandbox and Yahoo files section

2003-03-09 Thread Gennaro Prota
On Sun, 09 Mar 2003 09:11:05 -0500, David Abrahams <[EMAIL PROTECTED]> wrote: >Gennaro Prota <[EMAIL PROTECTED]> writes: > >> On Sat, 08 Mar 2003 15:31:58 -0500, David Abrahams >> <[EMAIL PROTECTED]> wrote: >> >> >>>"Make 'em MPL-compatible metafunctions." >>^^^ >> | which ones

Re: [boost] EH in the regression tools

2003-03-09 Thread David Abrahams
Beman Dawes <[EMAIL PROTECTED]> writes: > Yes: > > int cpp_main( int argc, char ** argv ) > > > So execution_monitor will take care of the catch. Ah, thanks very much. -- Dave Abrahams Boost Consulting www.boost-consulting.com ___ Unsub

[boost] Problems using iterator_adaptor with istreambuf_iterator

2003-03-09 Thread Hartmut Kaiser
Hi all, I have a problem while using the iterator_adaptor templates in conjunction with a istreambuf_iterator (an input_iterator type). The problem shows up, because the istreambuf_iterator::operator*() implementation of the STL I'm using returns a value_type (char), but the dereference policy me

Re: [boost] EH in the regression tools

2003-03-09 Thread Beman Dawes
At 10:50 AM 3/9/2003, David Abrahams wrote: > >Just browsing, I noticed: > > if ( !file ) >throw fs::filesystem_error( "process_jam_long.cpp", > pth, "can't open output file" ); > >But I can't find a catch block anywhere in the program. Am I missing >something? Yes: int cpp_

[boost] EH in the regression tools

2003-03-09 Thread David Abrahams
Just browsing, I noticed: if ( !file ) throw fs::filesystem_error( "process_jam_long.cpp", pth, "can't open output file" ); But I can't find a catch block anywhere in the program. Am I missing something? -- Dave Abrahams Boost Consulting www.boost-consulting.com _

Re: [boost] Re: New stuff into sandbox and Yahoo files section

2003-03-09 Thread David Abrahams
Gennaro Prota <[EMAIL PROTECTED]> writes: > On Sat, 08 Mar 2003 15:31:58 -0500, David Abrahams > <[EMAIL PROTECTED]> wrote: > > >>"Make 'em MPL-compatible metafunctions." >^^^ > | which ones? All of the traits. For example: template struct const_min : integral_c {}; > P

Re: [boost] BOOST_STATIC_CONSTANT and BCC5.5.1

2003-03-09 Thread Gennaro Prota
--- Craig Henderson <[EMAIL PROTECTED]> wrote: [...] > template > struct myval2 > { > BOOST_STATIC_CONSTANT(int, value=T::value); > > myval myval_obj; // <-- BCC error E2231 > }; This is a classic for Borland :-/ All the times I've encountered it, it always went away by qualifying th

Re: [Spirit-general] Re: Spirit problem with CW8 on MacOS X (was Re:[boost] XML Samples...)

2003-03-09 Thread Joel de Guzman
Paul Snively wrote: > Secondly, ast_xml.cpp takes a long time to compile--and no wonder; CW > Pro 8.3 generates ~14 megabytes for it! I assume that's debug mode? release mode should be so much smaller. I've had good results with CW7.2 on Windows and I believe the CW compiler is very good. For exa

[boost] BOOST_STATIC_CONSTANT and BCC5.5.1

2003-03-09 Thread Craig Henderson
Hi all, I have stumbled across a problem using the BCC5.5.1 compiler that may highlight an incompatibility with the BOOST_NO_INCLASS_MEMBER_INITIALIZATION macro. The problem is best described by way of an example, so I have pasted a complete repro case below. The problem comes about using the BOO

Re: [boost] PRB with type_traits::is_member_function_pointer

2003-03-09 Thread John Madock
It doesn't look like this change was ever made. Would you still like to see it made? Does anyone have an objection? It would only affect the IBM compiler. (I'm trying to make sure that patches haven't fallen on the floor. Please excuse the bother if the patch was not applied because it was reject

Re: [boost] [config] BOOST_DEDUCED_TYPENAME

2003-03-09 Thread John Madock
> > Well, I think you're right, but the question remains: what should we > > do about it? Should we just replace BOOST_DEDUCED_TYPENAME? > > That's what I would do. John? > > Aleksey If I remember correcty Dave introduced that macro anyway, so yes go ahead and change it- can you make sure that t

[boost] Re: New stuff into sandbox and Yahoo files section

2003-03-09 Thread Gennaro Prota
On Sat, 08 Mar 2003 15:31:58 -0500, David Abrahams <[EMAIL PROTECTED]> wrote: >"Make 'em MPL-compatible metafunctions." ^^^ | which ones? PS: why the quotes? :-) Genny. ___ Unsubscribe & other changes: http://lists.boost.org/mail