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 05:48:51 PST 2007
On 01/07/2007 09:11 AM, Larry Evans wrote:
[snip]
>
> There is a simplified mpl::map implementation prototype in the boost
> vault here:
>
> http://tinyurl.com/y9tuc3
>
> Maybe it could be translated to D.
>
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?
TIA.
-Larry
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: set_proto.d
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20070108/c61c41a7/attachment.ksh>
More information about the Digitalmars-d
mailing list