enc_filebuf.h: Move concept-check macro to class scope.
authorJonathan Wakely <redi@gcc.gnu.org>
Tue, 18 May 2004 09:09:39 +0000 (10:09 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 18 May 2004 09:09:39 +0000 (10:09 +0100)
2004-05-18  Jonathan Wakely  <redi@gcc.gnu.org>

* include/ext/enc_filebuf.h: Move concept-check macro to class scope.

From-SVN: r81978

libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/enc_filebuf.h

index cbd68c15071edbc77582a66677321b10739f24fe..61d4e529bd2bf7f908c5caef2b532a1d8803855b 100644 (file)
@@ -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.
index 80c3b5a15be0c2faf100d372e14436c9d4b75eec..39f4ef724d199d6bd92b5171cdf502baba7bdc6d 100644 (file)
@@ -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