[Issue 5491] filter cannot be used in a function?
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 26 11:07:59 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5491
--- Comment #4 from Timofei Bolshakov <tbolsh at gmail.com> 2011-01-26 11:05:52 PST ---
I got several other similar errors in find, like
/usr/include/d/dmd/phobos/std/functional.d(74): Error: static assert "Bad
unary function: a.parent_id == usb_id for type UsbDevice"
/usr/include/d/dmd/phobos/std/functional.d(87): instantiated from here:
Body!(UsbDevice)
/usr/include/d/dmd/phobos/std/algorithm.d(2699): instantiated from here:
result!(UsbDevice)
ampt/field_computer/usbmon.d(312): instantiated from here:
find!("a.parent_id == usb_id",Filter!(gateways_pred,UsbDevice[]))
Or
ampt/field_computer/usbmon.d(295): Error: cannot implicitly convert expression
(filter(devlist)) of type Filter!(gateways_pred,UsbDevice[]) to UsbDevice[]
That all makes functional style marginal - I do not know when and why it break
next time.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list