[PATCH] libstdc++ docs (was Re: G++ 3.3.1 Specialization bug?)

Jonathan Wakely cow@compsoc.man.ac.uk
Thu Sep 4 16:33:00 GMT 2003


On Mon, Sep 01, 2003 at 03:53:34PM +0200, Gabriel Dos Reis wrote:

> Jonathan Wakely <cow@compsoc.man.ac.uk> writes:
> 
> | Or just mention that when specialising you can't use the aliased
> | namespace name?
> 
> Yes.

OK, I'll apply this shortly:

2003-09-04  Jonathan Wakely  <redi@gcc.gnu.org>

	* docs/html/faq/index.html: Note that a namespace alias can't be
	used when specialising templates in extension namespace.

jon

-- 
"The future is here. It's just not evenly distributed yet."
	- William Gibson
-------------- next part --------------
Index: docs/html/faq/index.html
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/docs/html/faq/index.html,v
retrieving revision 1.60
diff -u -r1.60 index.html
--- docs/html/faq/index.html	16 Jul 2003 17:06:36 -0000	1.60
+++ docs/html/faq/index.html	1 Sep 2003 16:14:03 -0000
@@ -924,6 +924,11 @@
       <p>This is a bit cleaner than defining typedefs for all the
          instantiations you might need.
       </p>
+      <p><strong>Note:</strong> explicit template specializations must
+         be declared in the same namespace as the original template.
+         This means you cannot use a namespace alias when declaring
+         an explicit specialization.
+      </p>
       <p>Extensions to the library have
          <a href="../ext/howto.html">their own page</a>.
       </p>


More information about the Libstdc++ mailing list