10
10
#pragma once
11
11
#endif
12
12
13
+ #include < iosfwd>
13
14
#include < iterator>
14
15
#include < string>
15
16
#include < boost/spirit/home/karma/generate.hpp>
16
17
#include < boost/spirit/home/support/iterators/ostream_iterator.hpp>
18
+ #include < boost/core/scoped_enum.hpp>
17
19
#include < boost/mpl/bool.hpp>
18
20
19
21
// /////////////////////////////////////////////////////////////////////////////
@@ -148,7 +150,7 @@ namespace boost { namespace spirit { namespace karma { namespace detail
148
150
karma::ostream_iterator<Char, Char, Traits> sink (os);
149
151
if (!karma::generate (sink, fm.expr ))
150
152
{
151
- os.setstate (std::ios_base ::failbit);
153
+ os.setstate (std::basic_ostream<Char, Traits> ::failbit);
152
154
}
153
155
return os;
154
156
}
@@ -163,7 +165,7 @@ namespace boost { namespace spirit { namespace karma { namespace detail
163
165
karma::ostream_iterator<Char, Char, Traits> sink (os);
164
166
if (!karma::generate (sink, fm.expr , fm.attr ))
165
167
{
166
- os.setstate (std::ios_base ::failbit);
168
+ os.setstate (std::basic_ostream<Char, Traits> ::failbit);
167
169
}
168
170
return os;
169
171
}
@@ -177,7 +179,7 @@ namespace boost { namespace spirit { namespace karma { namespace detail
177
179
karma::ostream_iterator<Char, Char, Traits> sink (os);
178
180
if (!karma::generate_delimited (sink, fm.expr , fm.delim , fm.pre ))
179
181
{
180
- os.setstate (std::ios_base ::failbit);
182
+ os.setstate (std::basic_ostream<Char, Traits> ::failbit);
181
183
}
182
184
return os;
183
185
}
@@ -193,7 +195,7 @@ namespace boost { namespace spirit { namespace karma { namespace detail
193
195
karma::ostream_iterator<Char, Char, Traits> sink (os);
194
196
if (!karma::generate_delimited (sink, fm.expr , fm.delim , fm.pre , fm.attr ))
195
197
{
196
- os.setstate (std::ios_base ::failbit);
198
+ os.setstate (std::basic_ostream<Char, Traits> ::failbit);
197
199
}
198
200
return os;
199
201
}
0 commit comments