Ticket #1139: regex.hpp.patch

File regex.hpp.patch, 544 bytes (added by anonymous, 15 years ago)
  • regex.hpp

    old new  
    5757                return;
    5858            iterator first(&src[0], &src[0] + src.size(), re_, flags_);
    5959            iterator last;
    60             const Ch* suffix = 0; // Prevent GCC 2.95 warning.
     60            const Ch* suffix = &src[0]; //suffix will be entire input if no match found
    6161            for (; first != last; ++first) {
    6262                dest.insert( dest.end(),
    6363                             first->prefix().first,