• Feng Xiao's avatar
    Call copy() only if there is something to copy. · 93d6838a
    Feng Xiao authored
    RepeatedField::begin()/end() will return NULL when the content is empty.
    Passing these NULL values to std::copy() will result in runtime complains
    from some compilers (e.g., vs2010).
    93d6838a
repeated_field.h 82 KB