Re: [boost] Re: Hello MPL world!

2003-01-06 Thread David Abrahams
Howard Hinnant <[EMAIL PROTECTED]> writes: > On Monday, January 6, 2003, at 06:50 PM, David Abrahams wrote: > > Or maybe even just: > >template >struct my_container > : if_::value, impl1, impl2>::type ^^^ you'd have to drop that part (yes, it's magic ). >

Re: [boost] Re: Hello MPL world!

2003-01-06 Thread Joel de Guzman
- Original Message - From: "Greg Colvin" <[EMAIL PROTECTED]> > At 08:19 PM 1/6/2003, Joel de Guzman wrote: > >- Original Message - > >From: "David Abrahams" <[EMAIL PROTECTED]> > >... > >> > P.S. Outputting "Hello, world" in a way that generates significantly > >> > more code th

Re: [boost] Re: Hello MPL world!

2003-01-06 Thread Greg Colvin
At 08:19 PM 1/6/2003, Joel de Guzman wrote: >- Original Message - >From: "David Abrahams" <[EMAIL PROTECTED]> >... >> > P.S. Outputting "Hello, world" in a way that generates significantly >> > more code than the run-time version is probably not a good way to >> > endear users to metaprogr

Re: [boost] Re: Hello MPL world!

2003-01-06 Thread Joel de Guzman
- Original Message - From: "David Abrahams" <[EMAIL PROTECTED]> > "David B. Held" <[EMAIL PROTECTED]> writes: > > > "David Abrahams" <[EMAIL PROTECTED]> wrote in message > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > >> Yitzhak Sapir <[EMAIL PROTECTED]> writes: > >> > >> > I think s

Re: [boost] Re: Hello MPL world!

2003-01-06 Thread Howard Hinnant
On Monday, January 6, 2003, at 06:50 PM, David Abrahams wrote: OK, I see your point. How about: template struct my_container : if_< and_< is_pointer , is_POD > , impl1 , impl2 ::type { ... }; Or maybe even just

Re: [boost] UTF library available for review

2003-01-06 Thread Beman Dawes
At 09:13 PM 1/6/2003, Dietmar Kuehl wrote: >Since the Boost list has gotten (IMO) a little bit out of hand ... Have you tried the newsgroup interface? See news://news.gmane.org/gmane.comp.lib.boost.devel --Beman ___ Unsubscribe & other changes: htt

Re: [boost] Filesystem Library mini-review

2003-01-06 Thread Sean Parent
Beman, Thanks for the clarifications - I thought I had followed the whole thread but I had misunderstood and thought the thrust was to create a new path representation - on 1/6/03 1:51 PM, Beman Dawes at [EMAIL PROTECTED] wrote: > The syntax, semantics, and about everything else about paths that

[boost] Re: Hello MPL world!

2003-01-06 Thread David B. Held
"David Abrahams" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Howard Hinnant <[EMAIL PROTECTED]> writes: > > OK, I see your point. How about: > > template > struct my_container > : if_< > and_< >is_pointer > ,

Re: [boost] Re: Hello MPL world!

2003-01-06 Thread David Abrahams
Howard Hinnant <[EMAIL PROTECTED]> writes: > I would be careful that your target audience doesn't look at the > "helloworld" and say, gee, why don't I just use existing language > features: > >template >struct my_container >{ > // impl2 ... >}; > >template >struct my

[boost] Re: Re: Hello MPL world!

2003-01-06 Thread David B. Held
"Howard Hinnant" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > [...] > I would be careful that your target audience doesn't look at the > "helloworld" and say, gee, why don't I just use existing language > features: > [...] There's a point. Maybe using a trai

Re: [boost] UTF library available for review

2003-01-06 Thread Dietmar Kuehl
On Monday 06 January 2003 03:52 am, Alberto Barbati wrote: > I hope that in front of a full-blown and working > library I might get more attention. Since the Boost list has gotten (IMO) a little bit out of hand, I just haven't seen the previous mail. Actually, it was lucky I came across this one..

Re: [boost] Hello MPL world!

2003-01-06 Thread Terje Slettebø
>From: "Yitzhak Sapir" <[EMAIL PROTECTED]> > I think storing the text "Hello world!" in a vector > > typedef vector13_c 'H','e','l','l','o',' ', > 'w','o','r','l','d','!','\n'> hello_world; > > And then using functors to print it such as: > > template struct print > { > static void ev

Re: [boost] Re: Hello MPL world!

2003-01-06 Thread Howard Hinnant
On Monday, January 6, 2003, at 01:14 PM, David B. Held wrote: While this is a cute idea, my first impression would be: "Uh...is this really something I could use in my own code?" On the other hand, I seem to use compile-time if more than anything else, even in "user code". I suspect that most

Re: [boost] Re: Hello MPL world!

2003-01-06 Thread Terje Slettebø
>From: "Alisdair Meredith" <[EMAIL PROTECTED]> > Terje Slettebø wrote: > > > The results don't necessarily have to be printed out at > > compile-time (Erwin Unruh printed the results using compiler-warnings, but > > that is of course highly implementation dependent). > > > "Hello, world" in compil

Re: [boost] Filesystem Library mini-review

2003-01-06 Thread Beman Dawes
At 02:35 PM 1/5/2003, Sean Parent wrote: >on 1/5/03 10:21 AM, Beman Dawes at [EMAIL PROTECTED] wrote: > >> I had a conversation with Bill Plauger, Howard Hinnant, and several other >> library implementors at the last C++ committee meeting, and we agreed on >> a possible approach to the conversio

Re: [boost] Re: Hello MPL world!

2003-01-06 Thread David Abrahams
"David B. Held" <[EMAIL PROTECTED]> writes: > "David Abrahams" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >> Yitzhak Sapir <[EMAIL PROTECTED]> writes: >> >> > I think storing the text "Hello world!" in a vector >> > [...] >> > And then using functors to pri

Re: [boost] STL applied to disk

2003-01-06 Thread Dietmar Kuehl
mission of my implementation is the documentation... However, property maps are described in "The Boost Graph Library" by Jeremy Siek et al. (Addison-Wesley) and there are tests which can be used to see how the algorithms can be used. The implementation can be downloaded from <http://www.

[boost] is_abstract_class type trait

2003-01-06 Thread Pavel Vozenilek
Rani Sharoni posted one possible implementation on http://tinyurl.com/459q (c.l.c++.m, 2002-07-11, topic 'is_abstract_class implementation!'). The implementation depends on border-case C++ feature (more in Rani's text). I compiled it sucessfully with Comeau online compiler. It may be considered

[boost] Re: intrusive_ptr ?

2003-01-06 Thread Ken Johnson
Christophe, As an alternative, you might look at the intrusive pointer implementation at http://sourceforge.net/projects/cpputilities/. (Get the cpputilities_2003_01_04 download and extract the files ptr.h, target_base.h, pointer.html and target.html.) This is a fully-documented, STL-compatibl

RE: [boost] Big integers - current status? any progress?

2003-01-06 Thread Paul A. Bristow
I still think that this is an important item for a Boost license library (if I am right in assuming that GMP license does not permit commerical use). So I look forward to progress on this. Paul Dr Paul A Bristow, hetp Chromatography Prizet Farmhouse, Kendal, Cumbria, LA8 8AB UK +44 1539 561830

Re: [boost] UTF library available for review

2003-01-06 Thread Phil Nash
[William Kempf] > > From: Alberto Barbati <[EMAIL PROTECTED]> > > Hi Boosters, > > > > I have put in the Boost file section the first version of my UTF > > library. You can find it here: > > > > http://groups.yahoo.com/group/boost/files/utf/ > > > > A couple of months ago, I posted a message to che

[boost] Re: Hello MPL world!

2003-01-06 Thread David B. Held
"David Abrahams" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Yitzhak Sapir <[EMAIL PROTECTED]> writes: > > > I think storing the text "Hello world!" in a vector > > [...] > > And then using functors to print it such as: > [...] While this is a cute idea, my

Re: [boost] Hello MPL world!

2003-01-06 Thread David Abrahams
Yitzhak Sapir <[EMAIL PROTECTED]> writes: > I think storing the text "Hello world!" in a vector > > typedef vector13_c 'H','e','l','l','o',' ', > 'w','o','r','l','d','!','\n'> hello_world; > > And then using functors to print it such as: > > template struct print > { > static void eva

Re: [boost] UTF library available for review

2003-01-06 Thread William E. Kempf
> From: Alberto Barbati <[EMAIL PROTECTED]> > Hi Boosters, > > I have put in the Boost file section the first version of my UTF > library. You can find it here: > > http://groups.yahoo.com/group/boost/files/utf/ > > A couple of months ago, I posted a message to check if there was > interest in

[boost] Re: Hello MPL world!

2003-01-06 Thread Alisdair Meredith
David Abrahams wrote: > My current working idea is really simple: > > struct impl1 { ... }; > struct impl2 { ... }; > > template > struct my_container : if_, impl1, impl2>::type > { > ... > }; > > This is something I want to do all the time; it lets you swap out a > completely

Re: [boost] Hello MPL world!

2003-01-06 Thread Yitzhak Sapir
I think storing the text "Hello world!" in a vector typedef vector13_c hello_world; And then using functors to print it such as: template struct print { static void eval() { Prev::eval(); std::cout.put(T::value); } }; fold::type::eval(); would work as an hello worl

Re: [boost] Re: Hello MPL world!

2003-01-06 Thread David Abrahams
Alisdair Meredith <[EMAIL PROTECTED]> writes: > Terje Slettebø wrote: > >> The results don't necessarily have to be printed out at >> compile-time (Erwin Unruh printed the results using compiler-warnings, but >> that is of course highly implementation dependent). > >> "Hello, world" in compile-tim

Re: [boost] Hello MPL world!

2003-01-06 Thread David Abrahams
Terje Slettebø <[EMAIL PROTECTED]> writes: >>From: "David Abrahams" <[EMAIL PROTECTED]> > >> Aleksey and I are trying to think of a simple metaprogramming >> problem which we could use as a sort of "Hello World" example for >> the MPL. This seems to be a rather hard problem. Aside from being >>

[boost] Re: Hello MPL world!

2003-01-06 Thread Alisdair Meredith
Terje Slettebø wrote: > The results don't necessarily have to be printed out at > compile-time (Erwin Unruh printed the results using compiler-warnings, but > that is of course highly implementation dependent). > "Hello, world" in compile-time programming doesn't necessarily have to be > the same

RE: [boost] [MPL] naming question

2003-01-06 Thread Aleksey Gurtovoy
Greg Colvin wrote: > > > If this construct applies a metafuntion to a sequence > > > > It does and it doesn't :). Sorry if I wasn't clear about the > > semantics; it does not apply a metafunction to every element > > of a sequence; > > That would be for_each ? Almost - 'for_each' only makes s

Re: [boost] Hello MPL world!

2003-01-06 Thread Terje Slettebø
>From: "David Abrahams" <[EMAIL PROTECTED]> > Aleksey and I are trying to think of a simple metaprogramming > problem which we could use as a sort of "Hello World" example for > the MPL. This seems to be a rather hard problem. Aside from being > short, a C++ "hello, world" introduces only two li

[boost] Hello MPL world!

2003-01-06 Thread David Abrahams
Hi, Aleksey and I are trying to think of a simple metaprogramming problem which we could use as a sort of "Hello World" example for the MPL. This seems to be a rather hard problem. Aside from being short, a C++ "hello, world" introduces only two library components, cout and endl (three if you c