aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <redi@gcc.gnu.org>2004-05-18 10:09:39 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2004-05-18 10:09:39 +0100
commit319da9da6b5e02b0465379d5ad77709225addd9a (patch)
tree3f31629c467d484c77baa449f2e174834fb05c8e
parent8eb14e2ebfcc6230fdb1f04bd40da1e8452af0e9 (diff)
downloadgcc-319da9da6b5e02b0465379d5ad77709225addd9a.zip
gcc-319da9da6b5e02b0465379d5ad77709225addd9a.tar.gz
gcc-319da9da6b5e02b0465379d5ad77709225addd9a.tar.bz2
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
-rw-r--r--libstdc++-v3/ChangeLog4
-rw-r--r--libstdc++-v3/include/ext/enc_filebuf.h13
2 files changed, 12 insertions, 5 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index cbd68c1..61d4e52 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -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.
diff --git a/libstdc++-v3/include/ext/enc_filebuf.h b/libstdc++-v3/include/ext/enc_filebuf.h
index 80c3b5a..39f4ef7 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