Last change
on this file since 509ec82 was
236f133,
checked in by JiadaL <j82liang@…>, 5 months ago
|
Remove quasi_void for enums. The idea of quasi_void from Mike was to get around some resolution problem that enum pick function defines for Bounded over CfaEnum/TypedEnum?. But it is not clear that how often this can happen, and cfa might change the cast function scheme in the future. (change cost comparison scheme) Deprecate quasi_void for now so that enum traits looks cleaner without the dummy type for opaque enums
|
-
Property mode set to
100644
|
File size:
132 bytes
|
Line | |
---|
1 | #include <fstream.hfa> |
---|
2 | #include <enum.hfa> |
---|
3 | |
---|
4 | enum() E { A, B, C }; |
---|
5 | int main() { |
---|
6 | E e = A; |
---|
7 | sout | e | posn( e ) | label( e ); |
---|
8 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.