libstdc++ of g++ 3.4.x: std::swap and std::auto_ptr causes compilation errors

Jonathan Wakely cow@compsoc.man.ac.uk
Tue Nov 16 11:28:00 GMT 2004


On Tue, Nov 16, 2004 at 12:10:04PM +0100, Paolo Carlini wrote:

> Vinzenz Feenstra wrote:
> 
> >I don't understand, why I have to set it? This is strange to me, too. 
> >Shouldn't it be setted automatically?
> >I mean this is confusing me abit.
> 
> Oh, this is a long story... Enabling concept_check has a cost, in terms 
> of compile-time performance. Also, we had a few bugs in the code itself 
> + bits of the code where not completely removed by the optimizers. In 
> short, for 3.0.x it has been disabled by default. *Part* of the story is 
> recorded here:
> 
>    http://gcc.gnu.org/onlinedocs/libstdc++/19_diagnostics/howto.html#3

Oops, that doesn't have the right macro for 3.4 (CPP not CXX)


2004-11-16  Jonathan Wakely  <redi@gcc.gnu.org>

        * docs/html/19_diagnostics/howto.html: Document change from
        _GLIBCPP_CONCEPT_CHECKS to _GLIBCXX_CONCEPT_CHECKS in 3.4.

OK for mainline and 3.4?

jon

-- 
"Few know how much one needs to know to know how little one knows."
	- Johann Goethe
-------------- next part --------------
Index: docs/html/19_diagnostics/howto.html
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/docs/html/19_diagnostics/howto.html,v
retrieving revision 1.22
diff -c -r1.22 howto.html
*** docs/html/19_diagnostics/howto.html	3 Feb 2004 01:26:12 -0000	1.22
--- docs/html/19_diagnostics/howto.html	16 Nov 2004 11:27:28 -0000
***************
*** 110,120 ****
        object file.  The checks are also cleaner and easier to read and
        understand.
     </p>
!    <p>For GCC 3.0 and 3.1 they are off by default.  They can be enabled at
!       configure time with
        <a href="../configopts.html"><code>--enable-concept-checks</code></a>.
!       For 3.1 you can instead #define _GLIBCPP_CONCEPT_CHECKS to enable them
!       on a per-translation-unit basis.
     </p>
     <p>Return <a href="#top">to top of page</a> or
        <a href="../faq/index.html">to the FAQ</a>.
--- 110,123 ----
        object file.  The checks are also cleaner and easier to read and
        understand.
     </p>
!    <p>They are off by default for all versions of GCC from 3.0 to 3.4 (the
!       latest release at the time of writing).
!       They can be enabled at configure time with
        <a href="../configopts.html"><code>--enable-concept-checks</code></a>.
!       You can enable them on a per-translation-unit basis with
!       <code>#define _GLIBCXX_CONCEPT_CHECKS</code> for GCC 3.4 and higher
!       (or with <code>#define _GLIBCPP_CONCEPT_CHECKS</code> for versions
!       3.1, 3.2 and 3.3).
     </p>
     <p>Return <a href="#top">to top of page</a> or
        <a href="../faq/index.html">to the FAQ</a>.


More information about the Libstdc++ mailing list