@@ -161,12 +161,12 @@ constexpr auto skat_game::operator=(skat_game&& that) noexcept -> skat_game& {
161161[[nodiscard]] auto  skat_game::to_string_impl (cpp2::impl::in<std::string_view> prefix) const & -> std::string{
162162
163163auto  pref {cpp2::to_string (prefix)}; 
164- if  ((*this ) == diamonds) {return  pref + " diamonds" 
165- if  ((*this ) == hearts) {return  pref + " hearts" 
166- if  ((*this ) == spades) {return  pref + " spades" 
167- if  ((*this ) == clubs) {return  pref + " clubs" 
168- if  ((*this ) == grand) {return  pref + " grand" 
169- if  ((*this ) == null) {return  cpp2::move (pref) + " null" 
164+ if  ((*this ) == skat_game:: diamonds) {return  pref + " diamonds" 
165+ if  ((*this ) == skat_game:: hearts) {return  pref + " hearts" 
166+ if  ((*this ) == skat_game:: spades) {return  pref + " spades" 
167+ if  ((*this ) == skat_game:: clubs) {return  pref + " clubs" 
168+ if  ((*this ) == skat_game:: grand) {return  pref + " grand" 
169+ if  ((*this ) == skat_game:: null) {return  cpp2::move (pref) + " null" 
170170return  " invalid skat_game value" 
171171}
172172
@@ -175,16 +175,16 @@ return "invalid skat_game value";
175175[[nodiscard]] auto  skat_game::from_string (cpp2::impl::in<std::string_view> s) -> skat_game{
176176
177177auto  x {s}; 
178- if  (" diamonds" return  diamonds; }
179- else  {if  (" hearts" return  hearts; }
180- else  {if  (" spades" return  spades; }
181- else  {if  (" clubs" return  clubs; }
182- else  {if  (" grand" return  grand; }
183- else  {if  (" null" cpp2::move (x)) {return  null; }
178+ if  (" diamonds" return  skat_game:: diamonds; }
179+ else  {if  (" hearts" return  skat_game:: hearts; }
180+ else  {if  (" spades" return  skat_game:: spades; }
181+ else  {if  (" clubs" return  skat_game:: clubs; }
182+ else  {if  (" grand" return  skat_game:: grand; }
183+ else  {if  (" null" cpp2::move (x)) {return  skat_game:: null; }
184184#line  1 "pure2-enum.cpp2"
185185}}}}}
186186CPP2_UFCS (report_violation)(cpp2::type_safety, CPP2_UFCS (c_str)((" can't convert string '" cpp2::to_string (s) + " ' to enum of type skat_game" 
187- return  diamonds; 
187+ return  skat_game:: diamonds; 
188188}
189189
190190[[nodiscard]] auto  skat_game::from_code (cpp2::impl::in<std::string_view> s) -> skat_game{
@@ -223,8 +223,8 @@ constexpr auto janus::operator=(janus&& that) noexcept -> janus& {
223223[[nodiscard]] auto  janus::to_string_impl (cpp2::impl::in<std::string_view> prefix) const & -> std::string{
224224
225225    auto  pref {cpp2::to_string (prefix)}; 
226-     if  ((*this ) == past) {return  pref + " past" 
227-     if  ((*this ) == future) {return  cpp2::move (pref) + " future" 
226+     if  ((*this ) == janus:: past) {return  pref + " past" 
227+     if  ((*this ) == janus:: future) {return  cpp2::move (pref) + " future" 
228228    return  " invalid janus value" 
229229    }
230230
@@ -233,12 +233,12 @@ constexpr auto janus::operator=(janus&& that) noexcept -> janus& {
233233[[nodiscard]] auto  janus::from_string (cpp2::impl::in<std::string_view> s) -> janus{
234234
235235    auto  x {s}; 
236-     if  (" past" return  past; }
237-     else  {if  (" future" cpp2::move (x)) {return  future; }
236+     if  (" past" return  janus:: past; }
237+     else  {if  (" future" cpp2::move (x)) {return  janus:: future; }
238238#line  1 "pure2-enum.cpp2"
239239}
240240CPP2_UFCS (report_violation)(cpp2::type_safety, CPP2_UFCS (c_str)((" can't convert string '" cpp2::to_string (s) + " ' to enum of type janus" 
241- return  past; 
241+ return  janus:: past; 
242242}
243243
244244[[nodiscard]] auto  janus::from_code (cpp2::impl::in<std::string_view> s) -> janus{
@@ -290,10 +290,10 @@ std::string sep {};
290290if  ((*this ) == none) {return  " (none)" 
291291
292292auto  pref {cpp2::to_string (prefix)}; 
293- if  (((*this ) & cached) == cached) {ret += sep + pref + " cached" 
294- if  (((*this ) & current) == current) {ret += sep + pref + " current" 
295- if  (((*this ) & obsolete) == obsolete) {ret += sep + pref + " obsolete" 
296- if  (((*this ) & cached_and_current) == cached_and_current) {ret += sep + cpp2::move (pref) + " cached_and_current" 
293+ if  (((*this ) & file_attributes:: cached) == file_attributes:: cached) {ret += sep + pref + " cached" 
294+ if  (((*this ) & file_attributes:: current) == file_attributes:: current) {ret += sep + pref + " current" 
295+ if  (((*this ) & file_attributes:: obsolete) == file_attributes:: obsolete) {ret += sep + pref + " obsolete" 
296+ if  (((*this ) & file_attributes:: cached_and_current) == file_attributes:: cached_and_current) {ret += sep + cpp2::move (pref) + " cached_and_current" 
297297return  cpp2::move (ret) + " )" 
298298}
299299
@@ -304,11 +304,11 @@ return cpp2::move(ret) + ")";
304304auto  ret {none}; 
305305do  {{
306306for  ( auto  const & x : cpp2::string_util::split_string_list (s) ) {
307- if  (" cached" 
308- else  {if  (" current" 
309- else  {if  (" obsolete" 
310- else  {if  (" cached_and_current" 
311- else  {if  (" none" 
307+ if  (" cached" file_attributes:: cached;}
308+ else  {if  (" current" file_attributes:: current;}
309+ else  {if  (" obsolete" file_attributes:: obsolete;}
310+ else  {if  (" cached_and_current" file_attributes:: cached_and_current;}
311+ else  {if  (" none" file_attributes:: none;}
312312else  {goto  BREAK_outer;}
313313#line  1 "pure2-enum.cpp2"
314314}}}}
@@ -320,7 +320,7 @@ return ret;
320320false 
321321);
322322CPP2_UFCS (report_violation)(cpp2::type_safety, CPP2_UFCS (c_str)((" can't convert string '" cpp2::to_string (s) + " ' to flag_enum of type file_attributes" 
323- return  none; 
323+ return  file_attributes:: none; 
324324}
325325
326326[[nodiscard]] auto  file_attributes::from_code (cpp2::impl::in<std::string_view> s) -> file_attributes{
0 commit comments