[v3] disable concept checking code

Benjamin Kosnik bkoz@redhat.com
Tue Mar 27 11:24:00 GMT 2001


Everybody seems to agree on a bunch of things:

1) concept checking is way cool, in theory

2) the current implementation is buggy

3) the current implementation slows down compiles and generates
   un-necessary extra code. Lame.

So, it's off by default, based on the voting (2/1) of the libstdc++
maintainers and user feedback.

-benjamin


2001-03-27  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/c++config (_STL_USE_CONCEPT_CHECKS): Disable by default.

Index: include/bits/c++config
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/bits/c++config,v
retrieving revision 1.16
diff -c -p -r1.16 c++config
*** c++config	2001/03/23 20:02:03	1.16
--- c++config	2001/03/27 19:21:55
***************
*** 63,74 ****
  #    define __STL_UITHREADS
  #endif
  
! // Concept-checking code is on by default unless users define
! // the _STL_NO_CONCEPT_CHECKS hook.
! //#define _STL_NO_CONCEPT_CHECKS 1
! #if !defined(_STL_NO_CONCEPT_CHECKS)
! #  define __STL_USE_CONCEPT_CHECKS
! #endif
  
  // This is also a user hook, but via -f[no-]exceptions, not direct #defines.
  #ifdef __EXCEPTIONS
--- 63,71 ----
  #    define __STL_UITHREADS
  #endif
  
! // Concept-checking code is off by default unless users define
! // the _STL_USE_CONCEPT_CHECKS hook.
! //#define _STL_USE_CONCEPT_CHECKS 1
  
  // This is also a user hook, but via -f[no-]exceptions, not direct #defines.
  #ifdef __EXCEPTIONS



More information about the Gcc-patches mailing list