Opened 8 years ago

Closed 6 years ago

#3 closed defect (fixed)

No constructors in prelude from zero_t, one_t

Reported by: a3moss Owned by: a3moss
Priority: minor Component: cfa-cc
Version: 1.0 Keywords:
Cc:

Description

Do a trait assertion of the form void ?{}(T*, zero_t); (or one_t) -- int (and any other built-in type) will not satisfy it, and should.

Change History (6)

comment:1 by a3moss, 8 years ago

I'm not sure if the prelude library auto-generator will be smart enough to handle zero_t and one_t the way it should to generate these, which may be a non-trivial change.

Last edited 8 years ago by a3moss (previous) (diff)

comment:2 by ajbeach, 8 years ago

I think there are also no T ?=?(T*, zero_t); (that is to say, the matching assignment operators). Should these also be included in the prelude?

comment:3 by a3moss, 7 years ago

Owner: set to a3moss
Status: newassigned

This is fixed in the resolver prototype, so whenever I integrate its assertion resolution this issue should go away.

comment:4 by Thierry Delisle, 7 years ago

I believe this is fixed in master, please confirm...

in reply to:  4 comment:5 by Thierry Delisle, 7 years ago

Summary: No zero_t, one_t constructors in preludeNo constructors in prelude from zero_t, one_t

New title is clearer

comment:6 by Thierry Delisle, 6 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.