From: Jonathan Wakely Date: Tue, 18 May 2004 09:09:39 +0000 (+0100) Subject: enc_filebuf.h: Move concept-check macro to class scope. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=319da9da6b5e02b0465379d5ad77709225addd9a;p=gcc.git enc_filebuf.h: Move concept-check macro to class scope. 2004-05-18 Jonathan Wakely * include/ext/enc_filebuf.h: Move concept-check macro to class scope. From-SVN: r81978 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index cbd68c15071..61d4e529bd2 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2004-05-18 Jonathan Wakely + + * include/ext/enc_filebuf.h: Move concept-check macro to class scope. + 2004-05-17 Benjamin Kosnik * testsuite/testsuite_hooks.h (__gnu_test::conversion): New class. diff --git a/libstdc++-v3/include/ext/enc_filebuf.h b/libstdc++-v3/include/ext/enc_filebuf.h index 80c3b5a15be..39f4ef724d1 100644 --- a/libstdc++-v3/include/ext/enc_filebuf.h +++ b/libstdc++-v3/include/ext/enc_filebuf.h @@ -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