"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 print it such as:
>> [...]
>
> 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 people will use mpl::if_ and type traits
> more than anything else, so I think Dave's original example with
> is_pointer<> would connect with the most programmers.  

I think I agree with you here.

> On the other hand, I suspect that library authors are more likely to
> use the type containers and algorithms, so an example illustrating
> those might be more appropriate for them.  So I guess it depends on
> the intended audience.

I dunno, I use compile-time if_ in my libraries more than anything
else.

> Dave
>
> 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 metaprogramming. ;>

I guess you have a point there, too.

-- 
                       David Abrahams
   [EMAIL PROTECTED] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to