newbie help on mpl::set in D (was Re: simple parser framework + lazy bool error

Larry Evans cppljevans at cos-internet.com
Mon Jan 8 10:12:21 PST 2007


On 01/08/2007 07:48 AM, Larry Evans wrote:
[snip]
> The attached file is my first attempt at doing this in D.  It just
> tries the mpl::set translation; however, I'm getting:
> <--------- cut here -----------------
> set_proto.d(59): Error: cannot implicitly convert expression 
> ((has_key_tester)(cast(set)(set_int_float))) of type 
> set_proto.bool_!(false).bool_ to set_proto.bool_!(true).bool_
>  >--------- cut here -----------------
> Could someone show how to do this in D?
[snip]
The c++ counter part is attached.  The compiler used
is available from Douglas Gregor and is described here:

http://www.osl.iu.edu/~dgregor/cpp/variadic-templates.pdf

Is this not possible with D?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: set_proto.cpp
Type: text/x-c++
Size: 1258 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20070108/ffc14379/attachment.bin>


More information about the Digitalmars-d mailing list