@@ -39,7 +39,7 @@ class alias_declaration;
39
39
#line 962 "reflect.h2"
40
40
class value_member_info ;
41
41
42
- #line 1484 "reflect.h2"
42
+ #line 1480 "reflect.h2"
43
43
}
44
44
45
45
}
@@ -753,14 +753,14 @@ auto flag_enum(meta::type_declaration& t) -> void;
753
753
754
754
auto cpp2_union (meta::type_declaration& t) -> void;
755
755
756
- #line 1367 "reflect.h2"
756
+ #line 1363 "reflect.h2"
757
757
// -----------------------------------------------------------------------
758
758
//
759
759
// print - output a pretty-printed visualization of t
760
760
//
761
761
auto print (cpp2::impl::in<meta::type_declaration> t) -> void;
762
762
763
- #line 1377 "reflect.h2"
763
+ #line 1373 "reflect.h2"
764
764
// -----------------------------------------------------------------------
765
765
//
766
766
// apply_metafunctions
@@ -771,7 +771,7 @@ auto print(cpp2::impl::in<meta::type_declaration> t) -> void;
771
771
auto const & error
772
772
) -> bool;
773
773
774
- #line 1484 "reflect.h2"
774
+ #line 1480 "reflect.h2"
775
775
}
776
776
777
777
}
@@ -1896,38 +1896,25 @@ std::string storage{" _storage: cpp2::aligned_storage<cpp2::max( "};
1896
1896
1897
1897
#line 1286 "reflect.h2"
1898
1898
{
1899
- {
1900
- std::string comma{" " };
1901
-
1902
- #line 1288 "reflect.h2"
1903
1899
for (
1900
+ auto const & e : alternatives ) {
1901
+ storage += (" sizeof(" + cpp2::to_string (e.type ) + " ), " );
1902
+ }
1904
1903
1905
- auto const & e : alternatives ) { do {
1906
- storage += comma + (" sizeof(" + cpp2::to_string (e.type ) + " )" );
1907
- } while (false ); comma = " , " ; }
1908
- }
1909
-
1910
- #line 1294 "reflect.h2"
1911
1904
storage += " ), cpp2::max( " ;
1912
- {
1913
- std::string comma{" " };
1914
1905
1915
- #line 1297 "reflect.h2"
1916
1906
for (
1907
+ auto const & e : alternatives ) {
1908
+ storage += (" alignof(" + cpp2::to_string (e.type ) + " ), " );
1909
+ }
1917
1910
1918
- auto const & e : alternatives ) { do {
1919
- storage += comma + (" alignof(" + cpp2::to_string (e.type ) + " )" );
1920
- } while (false ); comma = " , " ; }
1921
- }
1922
-
1923
- #line 1303 "reflect.h2"
1924
1911
storage += " )> = ();\n " ;
1925
1912
CPP2_UFCS (add_member)(t, std::move (storage));
1926
1913
}
1927
1914
}
1928
1915
1929
1916
// Provide discriminator
1930
- #line 1308 "reflect.h2"
1917
+ #line 1304 "reflect.h2"
1931
1918
CPP2_UFCS (add_member)(t, (" _discriminator: " + cpp2::to_string (std::move (discriminator_type)) + " = -1;\n " ));
1932
1919
1933
1920
// Add the alternatives: is_alternative, get_alternative, and set_alternative
@@ -1949,7 +1936,7 @@ std::string destroy{" private _destroy: (inout this) = {\n"};
1949
1936
1950
1937
// Add destroy
1951
1938
1952
- #line 1327 "reflect.h2"
1939
+ #line 1323 "reflect.h2"
1953
1940
{
1954
1941
for (
1955
1942
auto const & a : alternatives ) {
@@ -1963,7 +1950,7 @@ std::string destroy{" private _destroy: (inout this) = {\n"};
1963
1950
}
1964
1951
1965
1952
// Add the destructor
1966
- #line 1339 "reflect.h2"
1953
+ #line 1335 "reflect.h2"
1967
1954
CPP2_UFCS (add_member)(t, " operator=: (move this) = { _destroy(); _ = this; }" );
1968
1955
1969
1956
// Add default constructor
@@ -1973,7 +1960,7 @@ std::string value_set{""};
1973
1960
1974
1961
// Add copy/move construction and assignment
1975
1962
1976
- #line 1346 "reflect.h2"
1963
+ #line 1342 "reflect.h2"
1977
1964
{
1978
1965
for (
1979
1966
auto const & a : std::move (alternatives) ) {
@@ -1993,16 +1980,16 @@ std::string value_set{""};
1993
1980
);
1994
1981
}
1995
1982
}
1996
- #line 1364 "reflect.h2"
1983
+ #line 1360 "reflect.h2"
1997
1984
}
1998
1985
1999
- #line 1371 "reflect.h2"
1986
+ #line 1367 "reflect.h2"
2000
1987
auto print (cpp2::impl::in<meta::type_declaration> t) -> void
2001
1988
{
2002
1989
std::cout << CPP2_UFCS (print)(t) << " \n " ;
2003
1990
}
2004
1991
2005
- #line 1381 "reflect.h2"
1992
+ #line 1377 "reflect.h2"
2006
1993
[[nodiscard]] auto apply_metafunctions (
2007
1994
declaration_node& n,
2008
1995
type_declaration& rtype,
@@ -2105,7 +2092,7 @@ auto print(cpp2::impl::in<meta::type_declaration> t) -> void
2105
2092
return true ;
2106
2093
}
2107
2094
2108
- #line 1484 "reflect.h2"
2095
+ #line 1480 "reflect.h2"
2109
2096
}
2110
2097
2111
2098
}
0 commit comments