@@ -28,70 +28,70 @@ struct X { operator int() const { return I; } };
28
28
X<0 >()};
29
29
30
30
// lvalue reference
31
- v = X<0 >(); std::cout << " v as X< 0> = " + cpp2::to_string (int (cpp2::as_<X<0 >>(v))) << std::endl;
32
- v = X<1 >(); std::cout << " v as X< 1> = " + cpp2::to_string (int (cpp2::as_<X<1 >>(v))) << std::endl;
33
- v = X<2 >(); std::cout << " v as X< 2> = " + cpp2::to_string (int (cpp2::as_<X<2 >>(v))) << std::endl;
34
- v = X<3 >(); std::cout << " v as X< 3> = " + cpp2::to_string (int (cpp2::as_<X<3 >>(v))) << std::endl;
35
- v = X<4 >(); std::cout << " v as X< 4> = " + cpp2::to_string (int (cpp2::as_<X<4 >>(v))) << std::endl;
36
- v = X<5 >(); std::cout << " v as X< 5> = " + cpp2::to_string (int (cpp2::as_<X<5 >>(v))) << std::endl;
37
- v = X<6 >(); std::cout << " v as X< 6> = " + cpp2::to_string (int (cpp2::as_<X<6 >>(v))) << std::endl;
38
- v = X<7 >(); std::cout << " v as X< 7> = " + cpp2::to_string (int (cpp2::as_<X<7 >>(v))) << std::endl;
39
- v = X<8 >(); std::cout << " v as X< 8> = " + cpp2::to_string (int (cpp2::as_<X<8 >>(v))) << std::endl;
40
- v = X<9 >(); std::cout << " v as X< 9> = " + cpp2::to_string (int (cpp2::as_<X<9 >>(v))) << std::endl;
41
- v = X<10 >(); std::cout << " v as X<10> = " + cpp2::to_string (int (cpp2::as_<X<10 >>(v))) << std::endl;
42
- v = X<11 >(); std::cout << " v as X<11> = " + cpp2::to_string (int (cpp2::as_<X<11 >>(v))) << std::endl;
43
- v = X<12 >(); std::cout << " v as X<12> = " + cpp2::to_string (int (cpp2::as_<X<12 >>(v))) << std::endl;
44
- v = X<13 >(); std::cout << " v as X<13> = " + cpp2::to_string (int (cpp2::as_<X<13 >>(v))) << std::endl;
45
- v = X<14 >(); std::cout << " v as X<14> = " + cpp2::to_string (int (cpp2::as_<X<14 >>(v))) << std::endl;
46
- v = X<15 >(); std::cout << " v as X<15> = " + cpp2::to_string (int (cpp2::as_<X<15 >>(v))) << std::endl;
47
- v = X<16 >(); std::cout << " v as X<16> = " + cpp2::to_string (int (cpp2::as_<X<16 >>(v))) << std::endl;
48
- v = X<17 >(); std::cout << " v as X<17> = " + cpp2::to_string (int (cpp2::as_<X<17 >>(v))) << std::endl;
49
- v = X<18 >(); std::cout << " v as X<18> = " + cpp2::to_string (int (cpp2::as_<X<18 >>(v))) << std::endl;
50
- v = X<19 >(); std::cout << " v as X<19> = " + cpp2::to_string (int (cpp2::as_<X<19 >>(v))) << std::endl;
31
+ v = X<0 >(); std::cout << ( " v as X< 0> = " + cpp2::to_string (int (cpp2::as_<X<0 >>(v) ))) << std::endl;
32
+ v = X<1 >(); std::cout << ( " v as X< 1> = " + cpp2::to_string (int (cpp2::as_<X<1 >>(v) ))) << std::endl;
33
+ v = X<2 >(); std::cout << ( " v as X< 2> = " + cpp2::to_string (int (cpp2::as_<X<2 >>(v) ))) << std::endl;
34
+ v = X<3 >(); std::cout << ( " v as X< 3> = " + cpp2::to_string (int (cpp2::as_<X<3 >>(v) ))) << std::endl;
35
+ v = X<4 >(); std::cout << ( " v as X< 4> = " + cpp2::to_string (int (cpp2::as_<X<4 >>(v) ))) << std::endl;
36
+ v = X<5 >(); std::cout << ( " v as X< 5> = " + cpp2::to_string (int (cpp2::as_<X<5 >>(v) ))) << std::endl;
37
+ v = X<6 >(); std::cout << ( " v as X< 6> = " + cpp2::to_string (int (cpp2::as_<X<6 >>(v) ))) << std::endl;
38
+ v = X<7 >(); std::cout << ( " v as X< 7> = " + cpp2::to_string (int (cpp2::as_<X<7 >>(v) ))) << std::endl;
39
+ v = X<8 >(); std::cout << ( " v as X< 8> = " + cpp2::to_string (int (cpp2::as_<X<8 >>(v) ))) << std::endl;
40
+ v = X<9 >(); std::cout << ( " v as X< 9> = " + cpp2::to_string (int (cpp2::as_<X<9 >>(v) ))) << std::endl;
41
+ v = X<10 >(); std::cout << ( " v as X<10> = " + cpp2::to_string (int (cpp2::as_<X<10 >>(v) ))) << std::endl;
42
+ v = X<11 >(); std::cout << ( " v as X<11> = " + cpp2::to_string (int (cpp2::as_<X<11 >>(v) ))) << std::endl;
43
+ v = X<12 >(); std::cout << ( " v as X<12> = " + cpp2::to_string (int (cpp2::as_<X<12 >>(v) ))) << std::endl;
44
+ v = X<13 >(); std::cout << ( " v as X<13> = " + cpp2::to_string (int (cpp2::as_<X<13 >>(v) ))) << std::endl;
45
+ v = X<14 >(); std::cout << ( " v as X<14> = " + cpp2::to_string (int (cpp2::as_<X<14 >>(v) ))) << std::endl;
46
+ v = X<15 >(); std::cout << ( " v as X<15> = " + cpp2::to_string (int (cpp2::as_<X<15 >>(v) ))) << std::endl;
47
+ v = X<16 >(); std::cout << ( " v as X<16> = " + cpp2::to_string (int (cpp2::as_<X<16 >>(v) ))) << std::endl;
48
+ v = X<17 >(); std::cout << ( " v as X<17> = " + cpp2::to_string (int (cpp2::as_<X<17 >>(v) ))) << std::endl;
49
+ v = X<18 >(); std::cout << ( " v as X<18> = " + cpp2::to_string (int (cpp2::as_<X<18 >>(v) ))) << std::endl;
50
+ v = X<19 >(); std::cout << ( " v as X<19> = " + cpp2::to_string (int (cpp2::as_<X<19 >>(v) ))) << std::endl;
51
51
52
52
// const lvalue reference
53
- v = X<0 >(); std::cout << " as_const(v) as X< 0> = " + cpp2::to_string (int (cpp2::as_<X<0 >>(std::as_const (v)))) << std::endl;
54
- v = X<1 >(); std::cout << " as_const(v) as X< 1> = " + cpp2::to_string (int (cpp2::as_<X<1 >>(std::as_const (v)))) << std::endl;
55
- v = X<2 >(); std::cout << " as_const(v) as X< 2> = " + cpp2::to_string (int (cpp2::as_<X<2 >>(std::as_const (v)))) << std::endl;
56
- v = X<3 >(); std::cout << " as_const(v) as X< 3> = " + cpp2::to_string (int (cpp2::as_<X<3 >>(std::as_const (v)))) << std::endl;
57
- v = X<4 >(); std::cout << " as_const(v) as X< 4> = " + cpp2::to_string (int (cpp2::as_<X<4 >>(std::as_const (v)))) << std::endl;
58
- v = X<5 >(); std::cout << " as_const(v) as X< 5> = " + cpp2::to_string (int (cpp2::as_<X<5 >>(std::as_const (v)))) << std::endl;
59
- v = X<6 >(); std::cout << " as_const(v) as X< 6> = " + cpp2::to_string (int (cpp2::as_<X<6 >>(std::as_const (v)))) << std::endl;
60
- v = X<7 >(); std::cout << " as_const(v) as X< 7> = " + cpp2::to_string (int (cpp2::as_<X<7 >>(std::as_const (v)))) << std::endl;
61
- v = X<8 >(); std::cout << " as_const(v) as X< 8> = " + cpp2::to_string (int (cpp2::as_<X<8 >>(std::as_const (v)))) << std::endl;
62
- v = X<9 >(); std::cout << " as_const(v) as X< 9> = " + cpp2::to_string (int (cpp2::as_<X<9 >>(std::as_const (v)))) << std::endl;
63
- v = X<10 >(); std::cout << " as_const(v) as X<10> = " + cpp2::to_string (int (cpp2::as_<X<10 >>(std::as_const (v)))) << std::endl;
64
- v = X<11 >(); std::cout << " as_const(v) as X<11> = " + cpp2::to_string (int (cpp2::as_<X<11 >>(std::as_const (v)))) << std::endl;
65
- v = X<12 >(); std::cout << " as_const(v) as X<12> = " + cpp2::to_string (int (cpp2::as_<X<12 >>(std::as_const (v)))) << std::endl;
66
- v = X<13 >(); std::cout << " as_const(v) as X<13> = " + cpp2::to_string (int (cpp2::as_<X<13 >>(std::as_const (v)))) << std::endl;
67
- v = X<14 >(); std::cout << " as_const(v) as X<14> = " + cpp2::to_string (int (cpp2::as_<X<14 >>(std::as_const (v)))) << std::endl;
68
- v = X<15 >(); std::cout << " as_const(v) as X<15> = " + cpp2::to_string (int (cpp2::as_<X<15 >>(std::as_const (v)))) << std::endl;
69
- v = X<16 >(); std::cout << " as_const(v) as X<16> = " + cpp2::to_string (int (cpp2::as_<X<16 >>(std::as_const (v)))) << std::endl;
70
- v = X<17 >(); std::cout << " as_const(v) as X<17> = " + cpp2::to_string (int (cpp2::as_<X<17 >>(std::as_const (v)))) << std::endl;
71
- v = X<18 >(); std::cout << " as_const(v) as X<18> = " + cpp2::to_string (int (cpp2::as_<X<18 >>(std::as_const (v)))) << std::endl;
72
- v = X<19 >(); std::cout << " as_const(v) as X<19> = " + cpp2::to_string (int (cpp2::as_<X<19 >>(std::as_const (v)))) << std::endl;
53
+ v = X<0 >(); std::cout << ( " as_const(v) as X< 0> = " + cpp2::to_string (int (cpp2::as_<X<0 >>(std::as_const (v) )))) << std::endl;
54
+ v = X<1 >(); std::cout << ( " as_const(v) as X< 1> = " + cpp2::to_string (int (cpp2::as_<X<1 >>(std::as_const (v) )))) << std::endl;
55
+ v = X<2 >(); std::cout << ( " as_const(v) as X< 2> = " + cpp2::to_string (int (cpp2::as_<X<2 >>(std::as_const (v) )))) << std::endl;
56
+ v = X<3 >(); std::cout << ( " as_const(v) as X< 3> = " + cpp2::to_string (int (cpp2::as_<X<3 >>(std::as_const (v) )))) << std::endl;
57
+ v = X<4 >(); std::cout << ( " as_const(v) as X< 4> = " + cpp2::to_string (int (cpp2::as_<X<4 >>(std::as_const (v) )))) << std::endl;
58
+ v = X<5 >(); std::cout << ( " as_const(v) as X< 5> = " + cpp2::to_string (int (cpp2::as_<X<5 >>(std::as_const (v) )))) << std::endl;
59
+ v = X<6 >(); std::cout << ( " as_const(v) as X< 6> = " + cpp2::to_string (int (cpp2::as_<X<6 >>(std::as_const (v) )))) << std::endl;
60
+ v = X<7 >(); std::cout << ( " as_const(v) as X< 7> = " + cpp2::to_string (int (cpp2::as_<X<7 >>(std::as_const (v) )))) << std::endl;
61
+ v = X<8 >(); std::cout << ( " as_const(v) as X< 8> = " + cpp2::to_string (int (cpp2::as_<X<8 >>(std::as_const (v) )))) << std::endl;
62
+ v = X<9 >(); std::cout << ( " as_const(v) as X< 9> = " + cpp2::to_string (int (cpp2::as_<X<9 >>(std::as_const (v) )))) << std::endl;
63
+ v = X<10 >(); std::cout << ( " as_const(v) as X<10> = " + cpp2::to_string (int (cpp2::as_<X<10 >>(std::as_const (v) )))) << std::endl;
64
+ v = X<11 >(); std::cout << ( " as_const(v) as X<11> = " + cpp2::to_string (int (cpp2::as_<X<11 >>(std::as_const (v) )))) << std::endl;
65
+ v = X<12 >(); std::cout << ( " as_const(v) as X<12> = " + cpp2::to_string (int (cpp2::as_<X<12 >>(std::as_const (v) )))) << std::endl;
66
+ v = X<13 >(); std::cout << ( " as_const(v) as X<13> = " + cpp2::to_string (int (cpp2::as_<X<13 >>(std::as_const (v) )))) << std::endl;
67
+ v = X<14 >(); std::cout << ( " as_const(v) as X<14> = " + cpp2::to_string (int (cpp2::as_<X<14 >>(std::as_const (v) )))) << std::endl;
68
+ v = X<15 >(); std::cout << ( " as_const(v) as X<15> = " + cpp2::to_string (int (cpp2::as_<X<15 >>(std::as_const (v) )))) << std::endl;
69
+ v = X<16 >(); std::cout << ( " as_const(v) as X<16> = " + cpp2::to_string (int (cpp2::as_<X<16 >>(std::as_const (v) )))) << std::endl;
70
+ v = X<17 >(); std::cout << ( " as_const(v) as X<17> = " + cpp2::to_string (int (cpp2::as_<X<17 >>(std::as_const (v) )))) << std::endl;
71
+ v = X<18 >(); std::cout << ( " as_const(v) as X<18> = " + cpp2::to_string (int (cpp2::as_<X<18 >>(std::as_const (v) )))) << std::endl;
72
+ v = X<19 >(); std::cout << ( " as_const(v) as X<19> = " + cpp2::to_string (int (cpp2::as_<X<19 >>(std::as_const (v) )))) << std::endl;
73
73
74
74
// rvalue reference
75
- v = X<0 >(); std::cout << " move(v) as X< 0> = " + cpp2::to_string (int (cpp2::as_<X<0 >>((std::move (v))))) << std::endl;
76
- v = X<1 >(); std::cout << " move(v) as X< 1> = " + cpp2::to_string (int (cpp2::as_<X<1 >>((std::move (v))))) << std::endl;
77
- v = X<2 >(); std::cout << " move(v) as X< 2> = " + cpp2::to_string (int (cpp2::as_<X<2 >>((std::move (v))))) << std::endl;
78
- v = X<3 >(); std::cout << " move(v) as X< 3> = " + cpp2::to_string (int (cpp2::as_<X<3 >>((std::move (v))))) << std::endl;
79
- v = X<4 >(); std::cout << " move(v) as X< 4> = " + cpp2::to_string (int (cpp2::as_<X<4 >>((std::move (v))))) << std::endl;
80
- v = X<5 >(); std::cout << " move(v) as X< 5> = " + cpp2::to_string (int (cpp2::as_<X<5 >>((std::move (v))))) << std::endl;
81
- v = X<6 >(); std::cout << " move(v) as X< 6> = " + cpp2::to_string (int (cpp2::as_<X<6 >>((std::move (v))))) << std::endl;
82
- v = X<7 >(); std::cout << " move(v) as X< 7> = " + cpp2::to_string (int (cpp2::as_<X<7 >>((std::move (v))))) << std::endl;
83
- v = X<8 >(); std::cout << " move(v) as X< 8> = " + cpp2::to_string (int (cpp2::as_<X<8 >>((std::move (v))))) << std::endl;
84
- v = X<9 >(); std::cout << " move(v) as X< 9> = " + cpp2::to_string (int (cpp2::as_<X<9 >>((std::move (v))))) << std::endl;
85
- v = X<10 >(); std::cout << " move(v) as X<10> = " + cpp2::to_string (int (cpp2::as_<X<10 >>((std::move (v))))) << std::endl;
86
- v = X<11 >(); std::cout << " move(v) as X<11> = " + cpp2::to_string (int (cpp2::as_<X<11 >>((std::move (v))))) << std::endl;
87
- v = X<12 >(); std::cout << " move(v) as X<12> = " + cpp2::to_string (int (cpp2::as_<X<12 >>((std::move (v))))) << std::endl;
88
- v = X<13 >(); std::cout << " move(v) as X<13> = " + cpp2::to_string (int (cpp2::as_<X<13 >>((std::move (v))))) << std::endl;
89
- v = X<14 >(); std::cout << " move(v) as X<14> = " + cpp2::to_string (int (cpp2::as_<X<14 >>((std::move (v))))) << std::endl;
90
- v = X<15 >(); std::cout << " move(v) as X<15> = " + cpp2::to_string (int (cpp2::as_<X<15 >>((std::move (v))))) << std::endl;
91
- v = X<16 >(); std::cout << " move(v) as X<16> = " + cpp2::to_string (int (cpp2::as_<X<16 >>((std::move (v))))) << std::endl;
92
- v = X<17 >(); std::cout << " move(v) as X<17> = " + cpp2::to_string (int (cpp2::as_<X<17 >>((std::move (v))))) << std::endl;
93
- v = X<18 >(); std::cout << " move(v) as X<18> = " + cpp2::to_string (int (cpp2::as_<X<18 >>((std::move (v))))) << std::endl;
94
- v = X<19 >(); std::cout << " move(v) as X<19> = " + cpp2::to_string (int (cpp2::as_<X<19 >>((std::move (std::move (v)))))) << std::endl;
75
+ v = X<0 >(); std::cout << ( " move(v) as X< 0> = " + cpp2::to_string (int (cpp2::as_<X<0 >>((std::move (v) ))))) << std::endl;
76
+ v = X<1 >(); std::cout << ( " move(v) as X< 1> = " + cpp2::to_string (int (cpp2::as_<X<1 >>((std::move (v) ))))) << std::endl;
77
+ v = X<2 >(); std::cout << ( " move(v) as X< 2> = " + cpp2::to_string (int (cpp2::as_<X<2 >>((std::move (v) ))))) << std::endl;
78
+ v = X<3 >(); std::cout << ( " move(v) as X< 3> = " + cpp2::to_string (int (cpp2::as_<X<3 >>((std::move (v) ))))) << std::endl;
79
+ v = X<4 >(); std::cout << ( " move(v) as X< 4> = " + cpp2::to_string (int (cpp2::as_<X<4 >>((std::move (v) ))))) << std::endl;
80
+ v = X<5 >(); std::cout << ( " move(v) as X< 5> = " + cpp2::to_string (int (cpp2::as_<X<5 >>((std::move (v) ))))) << std::endl;
81
+ v = X<6 >(); std::cout << ( " move(v) as X< 6> = " + cpp2::to_string (int (cpp2::as_<X<6 >>((std::move (v) ))))) << std::endl;
82
+ v = X<7 >(); std::cout << ( " move(v) as X< 7> = " + cpp2::to_string (int (cpp2::as_<X<7 >>((std::move (v) ))))) << std::endl;
83
+ v = X<8 >(); std::cout << ( " move(v) as X< 8> = " + cpp2::to_string (int (cpp2::as_<X<8 >>((std::move (v) ))))) << std::endl;
84
+ v = X<9 >(); std::cout << ( " move(v) as X< 9> = " + cpp2::to_string (int (cpp2::as_<X<9 >>((std::move (v) ))))) << std::endl;
85
+ v = X<10 >(); std::cout << ( " move(v) as X<10> = " + cpp2::to_string (int (cpp2::as_<X<10 >>((std::move (v) ))))) << std::endl;
86
+ v = X<11 >(); std::cout << ( " move(v) as X<11> = " + cpp2::to_string (int (cpp2::as_<X<11 >>((std::move (v) ))))) << std::endl;
87
+ v = X<12 >(); std::cout << ( " move(v) as X<12> = " + cpp2::to_string (int (cpp2::as_<X<12 >>((std::move (v) ))))) << std::endl;
88
+ v = X<13 >(); std::cout << ( " move(v) as X<13> = " + cpp2::to_string (int (cpp2::as_<X<13 >>((std::move (v) ))))) << std::endl;
89
+ v = X<14 >(); std::cout << ( " move(v) as X<14> = " + cpp2::to_string (int (cpp2::as_<X<14 >>((std::move (v) ))))) << std::endl;
90
+ v = X<15 >(); std::cout << ( " move(v) as X<15> = " + cpp2::to_string (int (cpp2::as_<X<15 >>((std::move (v) ))))) << std::endl;
91
+ v = X<16 >(); std::cout << ( " move(v) as X<16> = " + cpp2::to_string (int (cpp2::as_<X<16 >>((std::move (v) ))))) << std::endl;
92
+ v = X<17 >(); std::cout << ( " move(v) as X<17> = " + cpp2::to_string (int (cpp2::as_<X<17 >>((std::move (v) ))))) << std::endl;
93
+ v = X<18 >(); std::cout << ( " move(v) as X<18> = " + cpp2::to_string (int (cpp2::as_<X<18 >>((std::move (v) ))))) << std::endl;
94
+ v = X<19 >(); std::cout << ( " move(v) as X<19> = " + cpp2::to_string (int (cpp2::as_<X<19 >>((std::move (std::move (v) )))))) << std::endl;
95
95
96
96
}
97
97
0 commit comments