This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] What about removing #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS??


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]