26 #if BOOST_WORKAROUND(__GNUC__, < 3) && !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION) 29 #ifndef BOOST_FORMAT_WORKAROUNDS_GCC295_H 30 #define BOOST_FORMAT_WORKAROUNDS_GCC295_H 34 #define BOOST_FORMAT_OSTREAM_DEFINED 36 #include <streambuf.h> 37 #define BOOST_FORMAT_STREAMBUF_DEFINED 39 #define BOOST_NO_TEMPLATE_STD_STREAM 42 # define BOOST_IO_STD std:: 59 template <
class Ch,
class Tr>
60 class basic_streambuf;
63 class basic_streambuf<char, Tr> :
public streambuf {
66 template <
class Ch,
class Tr=::std::
char_traits<Ch> >
70 class basic_ios<char, Tr> :
public ostream {
72 basic_ios(streambuf *
p) : ostream(p) {};
73 char fill()
const {
return ios::fill(); }
74 char fill(
char c) {
return ios::fill(c); }
75 char widen(
char c) {
return c; }
76 char narrow(
char c,
char def) {
return c; }
77 basic_ios& copyfmt(
const ios&
right) {
79 flags(right.flags() );
80 exceptions(right.exceptions());
90 template <
class Ch,
class Tr>
94 class basic_ostream<char, Tr> :
public basic_ios<char, Tr>
97 basic_ostream(streambuf *
p) : basic_ios<char,Tr> (p) {}
109 class CompatTraits< ::std::string_char_traits<Ch> >
110 :
public ::std::string_char_traits<Ch>
113 typedef CompatTraits compatible_type;
115 typedef Ch char_type;
116 typedef int int_type;
117 typedef ::std::streampos pos_type;
118 typedef ::std::streamoff off_type;
121 to_char_type(
const int_type& meta) {
122 return static_cast<char_type
>(meta); }
124 to_int_type(
const char_type& ch) {
125 return static_cast<int_type
>(
static_cast<unsigned char>(ch) );}
127 eq_int_type(
const int_type&
left,
const int_type& right) {
128 return left ==
right; }
131 return static_cast<int_type
>(EOF);
134 not_eof(
const int_type& meta) {
135 return (meta == eof()) ? 0 : meta;
140 class CompatTraits< ::std::char_traits<Ch> > {
142 typedef CompatTraits< ::std::string_char_traits<Ch> > compatible_type;
147 class CompatAlloc< ::std::alloc>
150 typedef ::std::allocator<char> compatible_type;
160 #endif // include guard 162 #endif // if workaround BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE.
GLenum GLint GLint * precision