sg_traits.hxx

Go to the documentation of this file.
00001 
00006 #ifndef _SG_TRAITS_HXX
00007 #define _SG_TRAITS_HXX
00008 
00009 #include <simgear/compiler.h>
00010 
00011 #ifndef SG_HAVE_TRAITS
00012 
00013 // Dummy up some char traits for now.
00014 template<class charT> struct char_traits{};
00015 
00016 SG_TEMPLATE_NULL
00017 struct char_traits<char>
00018 {
00019     typedef char      char_type;
00020     typedef int       int_type;
00021     typedef streampos pos_type;
00022     typedef streamoff off_type;
00023 
00024     static int_type eof() { return EOF; }
00025 };
00026 #endif // SG_HAVE_TRAITS
00027 
00028 #endif // _SG_TRAITS_HXX

Generated on Mon Dec 17 09:30:55 2007 for SimGear by  doxygen 1.5.1