forked from hsutter/cppfront
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpure2-enum.cpp.execution
37 lines (35 loc) · 1.06 KB
/
pure2-enum.cpp.execution
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
x.to_string() is clubs
x2.to_string() is clubs
x3.to_string() is hearts
x3.to_code() is skat_game::hearts
x4.to_string() is hearts
with if else: clubs
with inspect: clubs
file_attributes::cached.get_raw_value() is 1
file_attributes::current.get_raw_value() is 2
file_attributes::obsolete.get_raw_value() is 4
file_attributes::cached_and_current.get_raw_value() is 3
f. get_raw_value() is 1
f2.get_raw_value() is 1
f is (cached)
f2 is (cached)
f2 is (none)
f2 is (cached)
f. get_raw_value() is 1
f2.get_raw_value() is 1
f is (f2) is true
f2 is (f ) is true
f is (cached, current, obsolete, cached_and_current)
f2 is (cached, current, cached_and_current)
f. get_raw_value() is 7
f2.get_raw_value() is 3
f == f2 is false
f is (f2) is false
f2 is (f ) is false
(f & f2) == f2 is true
inspecting f: includes all f2's flags ('cached' and 'current')
f_from_string is (cached, current, cached_and_current)
f_from_string is (current, obsolete)
f_from_string.to_code() is (file_attributes::current | file_attributes::obsolete)
f_from_string is (cached, obsolete)
a.to_string() is s