@@ -28,29 +28,29 @@ enum class stream_manipulator {
28
28
defaultfloat
29
29
};
30
30
31
- const stream_manipulator dec = stream_manipulator::dec;
31
+ constexpr stream_manipulator dec = stream_manipulator::dec;
32
32
33
- const stream_manipulator hex = stream_manipulator::hex;
33
+ constexpr stream_manipulator hex = stream_manipulator::hex;
34
34
35
- const stream_manipulator oct = stream_manipulator::oct;
35
+ constexpr stream_manipulator oct = stream_manipulator::oct;
36
36
37
- const stream_manipulator noshowbase = stream_manipulator::noshowbase;
37
+ constexpr stream_manipulator noshowbase = stream_manipulator::noshowbase;
38
38
39
- const stream_manipulator showbase = stream_manipulator::showbase;
39
+ constexpr stream_manipulator showbase = stream_manipulator::showbase;
40
40
41
- const stream_manipulator noshowpos = stream_manipulator::noshowpos;
41
+ constexpr stream_manipulator noshowpos = stream_manipulator::noshowpos;
42
42
43
- const stream_manipulator showpos = stream_manipulator::showpos;
43
+ constexpr stream_manipulator showpos = stream_manipulator::showpos;
44
44
45
- const stream_manipulator endl = stream_manipulator::endl;
45
+ constexpr stream_manipulator endl = stream_manipulator::endl;
46
46
47
- const stream_manipulator fixed = stream_manipulator::fixed;
47
+ constexpr stream_manipulator fixed = stream_manipulator::fixed;
48
48
49
- const stream_manipulator scientific = stream_manipulator::scientific;
49
+ constexpr stream_manipulator scientific = stream_manipulator::scientific;
50
50
51
- const stream_manipulator hexfloat = stream_manipulator::hexfloat;
51
+ constexpr stream_manipulator hexfloat = stream_manipulator::hexfloat;
52
52
53
- const stream_manipulator defaultfloat = stream_manipulator::defaultfloat;
53
+ constexpr stream_manipulator defaultfloat = stream_manipulator::defaultfloat;
54
54
55
55
class stream ;
56
56
@@ -145,7 +145,7 @@ class stream {
145
145
}
146
146
147
147
// Set the flags which correspond to the input stream manipulator.
148
- void set_manipulator (const stream_manipulator & SM) const {
148
+ void set_manipulator (const stream_manipulator SM) const {
149
149
switch (SM) {
150
150
case stream_manipulator::dec:
151
151
set_flag (detail::Dec, detail::BaseField);
@@ -195,7 +195,7 @@ class stream {
195
195
friend const stream &operator <<(const stream &, const float &);
196
196
friend const stream &operator <<(const stream &, const double &);
197
197
friend const stream &operator <<(const stream &, const half &);
198
- friend const stream &operator <<(const stream &, const stream_manipulator & );
198
+ friend const stream &operator <<(const stream &, const stream_manipulator);
199
199
friend const stream &operator <<(const stream &Out,
200
200
const __precision_manipulator__ &RHS);
201
201
@@ -319,7 +319,7 @@ inline const stream &operator<<(const stream &Out,
319
319
}
320
320
321
321
inline const stream &operator <<(const stream &Out,
322
- const stream_manipulator & RHS) {
322
+ const stream_manipulator RHS) {
323
323
switch (RHS) {
324
324
case stream_manipulator::endl:
325
325
Out << ' \n ' ;
0 commit comments