[RFC] What about removing #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS??
Paolo Carlini
pcarlini@unitus.it
Fri Oct 10 17:03:00 GMT 2003
Benjamin Kosnik wrote:
>To be specific:
>
>Use this style:
>
>basic_string.h
> // _GLIBCXX_RESOLVE_LIB_DEFECTS
> // 5 String::compare specification questionable
>
>Not this (and include only the fixed code):
>
>basic_string.tcc
>#ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS
> // 83. String::npos vs. string::max_size()
> if (__capacity > _S_max_size)
>#else
> if (__capacity == npos)
>#endif
>
Agreed, great!
Paolo.
More information about the Libstdc++
mailing list