Fix -fpermissive: '<::' cannot begin a template-argument list

'<:' is an alternate spelling for '['.
pull/4239/head
Ludger Sprenker 7 years ago committed by GitHub
parent 9ab859f5a5
commit 14e8852fe4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/google/protobuf/arenastring.h

@ -323,7 +323,7 @@ struct LIBPROTOBUF_EXPORT ArenaStringPtr {
const ::std::string* initial_value) {
GOOGLE_DCHECK(initial_value != NULL);
// uses "new ::std::string" when arena is nullptr
ptr_ = Arena::Create<::std::string>(arena, *initial_value);
ptr_ = Arena::Create< ::std::string >(arena, *initial_value);
}
GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE
void CreateInstanceNoArena(const ::std::string* initial_value) {

Loading…
Cancel
Save