+2004-08-25 Jonathan Wakely <redi@gcc.gnu.org>
+
+ * include/ext/enc_filebuf.h: Move concept-check macro to class scope.
+
2004-07-27 Benjamin Kosnik <bkoz@redhat.com>
* config/linker-map.gnu: Export typeinfo information.
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 copyconstructible + assignment operator.
- __glibcpp_class_requires(state_type, _SGIAssignableConcept);
- _M_state_cur = __state;
- _M_state_cur._M_init();
- };
+ {
+ 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