mirror of git://gcc.gnu.org/git/gcc.git
enc_filebuf.h: Move concept-check macro to class scope.
2004-05-18 Jonathan Wakely <redi@gcc.gnu.org> * include/ext/enc_filebuf.h: Move concept-check macro to class scope. From-SVN: r81978
This commit is contained in:
parent
8eb14e2ebf
commit
319da9da6b
|
|
@ -1,3 +1,7 @@
|
|||
2004-05-18 Jonathan Wakely <redi@gcc.gnu.org>
|
||||
|
||||
* include/ext/enc_filebuf.h: Move concept-check macro to class scope.
|
||||
|
||||
2004-05-17 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
* testsuite/testsuite_hooks.h (__gnu_test::conversion): New class.
|
||||
|
|
|
|||
|
|
@ -54,12 +54,15 @@ namespace __gnu_cxx
|
|||
enc_filebuf(state_type& __state)
|
||||
: std::basic_filebuf<_CharT, enc_char_traits<_CharT> >()
|
||||
{
|
||||
// Set state type to something useful.
|
||||
// Something more than copyconstructible is needed here, so
|
||||
// require default and copy constructible + assignment operator.
|
||||
__glibcxx_class_requires(state_type, _SGIAssignableConcept);
|
||||
this->_M_state_beg = __state;
|
||||
this->_M_state_beg._M_init();
|
||||
};
|
||||
}
|
||||
|
||||
private:
|
||||
// concept requirements:
|
||||
// Set state type to something useful.
|
||||
// Something more than copyconstructible is needed here, so
|
||||
// require default and copy constructible + assignment operator.
|
||||
__glibcxx_class_requires(state_type, _SGIAssignableConcept)
|
||||
};
|
||||
} // namespace __gnu_cxx
|
||||
|
|
|
|||
Loading…
Reference in New Issue