using new template resolution for def args, and cosmetics

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6890 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-12-16 01:35:52 +00:00
commit bd0ccd3769
14 changed files with 58 additions and 63 deletions

View file

@ -5,7 +5,7 @@
namespace std {
template<typename _CharT, typename _Traits>
template<typename _CharT, typename _Traits = char_traits<_CharT> >
class basic_streambuf
{
public:
@ -16,8 +16,6 @@ namespace std {
typedef typename traits_type::pos_type pos_type;
typedef typename traits_type::off_type off_type;
typedef basic_streambuf<char_type, traits_type> __streambuf_type;
public:
virtual
~basic_streambuf();
@ -30,7 +28,7 @@ namespace std {
getloc() const;
// Buffer and positioning:
__streambuf_type*
basic_streambuf<_CharT, _Traits>*
pubsetbuf(char_type* __s, streamsize __n);
pos_type
@ -82,6 +80,6 @@ namespace std {
}
namespace std {
%template(streambuf) basic_streambuf<char, char_traits<char> >;
%template(wstreambuf) basic_streambuf<wchar_t, char_traits<wchar_t> >;
%template(streambuf) basic_streambuf<char>;
%template(wstreambuf) basic_streambuf<wchar_t>;
}