@@ -24,9 +24,9 @@ class file_attributes;
24
24
25
25
#line 2 "pure2-enum.cpp2"
26
26
class skat_game {
27
- private: cpp2::i8 _value; private: constexpr skat_game (auto const & val);
27
+ private: cpp2::i8 _value; private: constexpr skat_game (cpp2::in<cpp2::i64> val);
28
28
29
- private: constexpr auto operator =(auto const & val) -> skat_game& ;
29
+ private: constexpr auto operator =(cpp2::in<cpp2::i64> val) -> skat_game& ;
30
30
public: [[nodiscard]] constexpr auto get_raw_value () const & -> cpp2::i8;
31
31
public: constexpr skat_game (skat_game const & that);
32
32
public: constexpr auto operator =(skat_game const & that) -> skat_game& ;
@@ -55,9 +55,9 @@ class janus {
55
55
#line 15 "pure2-enum.cpp2"
56
56
public: auto flip () & -> void;
57
57
58
- private: cpp2::i8 _value; private: constexpr janus (auto const & val);
58
+ private: cpp2::i8 _value; private: constexpr janus (cpp2::in<cpp2::i64> val);
59
59
60
- private: constexpr auto operator =(auto const & val) -> janus& ;
60
+ private: constexpr auto operator =(cpp2::in<cpp2::i64> val) -> janus& ;
61
61
public: [[nodiscard]] constexpr auto get_raw_value () const & -> cpp2::i8;
62
62
public: constexpr janus (janus const & that);
63
63
public: constexpr auto operator =(janus const & that) -> janus& ;
@@ -73,9 +73,9 @@ public: friend auto operator<<(std::ostream& o, cpp2::in<janus> val) -> std::ost
73
73
};
74
74
75
75
class file_attributes {
76
- private: cpp2::u8 _value; private: constexpr file_attributes (auto const & val);
76
+ private: cpp2::u8 _value; private: constexpr file_attributes (cpp2::in<cpp2::i64> val);
77
77
78
- private: constexpr auto operator =(auto const & val) -> file_attributes& ;
78
+ private: constexpr auto operator =(cpp2::in<cpp2::i64> val) -> file_attributes& ;
79
79
public: [[nodiscard]] constexpr auto get_raw_value () const & -> cpp2::u8;
80
80
public: constexpr file_attributes (file_attributes const & that);
81
81
public: constexpr auto operator =(file_attributes const & that) -> file_attributes& ;
@@ -114,11 +114,11 @@ auto main() -> int;
114
114
115
115
116
116
117
- constexpr skat_game::skat_game (auto const & val)
118
- : _value{ cpp2::unsafe_narrow<cpp2::i8>(val) } { }
119
- constexpr auto skat_game::operator =(auto const & val) -> skat_game& {
120
- _value = cpp2::unsafe_narrow<cpp2::i8>(val);
121
- return *this ; }
117
+ constexpr skat_game::skat_game (cpp2::in<cpp2::i64> val)
118
+ : _value{ cpp2::unsafe_narrow<cpp2::i8>(val) } { }
119
+ constexpr auto skat_game::operator =(cpp2::in<cpp2::i64> val) -> skat_game& {
120
+ _value = cpp2::unsafe_narrow<cpp2::i8>(val);
121
+ return *this ; }
122
122
[[nodiscard]] constexpr auto skat_game::get_raw_value () const & -> cpp2::i8 { return _value; }
123
123
constexpr skat_game::skat_game (skat_game const & that)
124
124
: _value{ that._value }{}
@@ -160,12 +160,12 @@ inline constexpr skat_game skat_game::null = 23;
160
160
}
161
161
162
162
163
- constexpr janus::janus (auto const & val)
164
- : _value{ cpp2::unsafe_narrow<cpp2::i8>(val) } { }
163
+ constexpr janus::janus (cpp2::in<cpp2::i64> val)
164
+ : _value{ cpp2::unsafe_narrow<cpp2::i8>(val) } { }
165
165
166
- constexpr auto janus::operator =(auto const & val) -> janus& {
167
- _value = cpp2::unsafe_narrow<cpp2::i8>(val);
168
- return *this ; }
166
+ constexpr auto janus::operator =(cpp2::in<cpp2::i64> val) -> janus& {
167
+ _value = cpp2::unsafe_narrow<cpp2::i8>(val);
168
+ return *this ; }
169
169
[[nodiscard]] constexpr auto janus::get_raw_value () const & -> cpp2::i8 { return _value; }
170
170
constexpr janus::janus (janus const & that)
171
171
: _value{ that._value }{}
@@ -188,11 +188,11 @@ inline constexpr janus janus::future = 1;
188
188
}
189
189
190
190
auto operator <<(std::ostream& o, cpp2::in<janus> val) -> std::ostream&{o << CPP2_UFCS_0 (to_string, val);return o; }
191
- constexpr file_attributes::file_attributes (auto const & val)
192
- : _value{ cpp2::unsafe_narrow<cpp2::u8>(val) } { }
193
- constexpr auto file_attributes::operator =(auto const & val) -> file_attributes& {
194
- _value = cpp2::unsafe_narrow<cpp2::u8>(val);
195
- return *this ; }
191
+ constexpr file_attributes::file_attributes (cpp2::in<cpp2::i64> val)
192
+ : _value{ cpp2::unsafe_narrow<cpp2::u8>(val) } { }
193
+ constexpr auto file_attributes::operator =(cpp2::in<cpp2::i64> val) -> file_attributes& {
194
+ _value = cpp2::unsafe_narrow<cpp2::u8>(val);
195
+ return *this ; }
196
196
[[nodiscard]] constexpr auto file_attributes::get_raw_value () const & -> cpp2::u8 { return _value; }
197
197
constexpr file_attributes::file_attributes (file_attributes const & that)
198
198
: _value{ that._value }{}
0 commit comments