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: Add C++-0x char* cotor and to_ullong to bitset


On 12/18/2009 05:52 PM, 3dw4rd@verizon.net wrote:
> This little patch adds
>   explicit bitset(const char*);
>   
Let's do this first, which seems more straightforward. Please, split the
patch. Of course, let's not re-invent the wheel, thus let's use
__builtin_strlen, something like, in the body of the constructor:

    if (__str)
      {
         const size_t __len = __builtin_strlen(...);
         this->_M_copy_from_ptr(... uses __len...);
       }

Paolo.


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