Commit c58b5991 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Cut extraneous typename in StringKeyedCommon.h

Summary:
[Folly] Cut extraneous typename in `StringKeyedCommon.h`.

In this case, `typename` is optional, and, to avoid confusion, should be removed.

"In this case" means in a template definition, with a qualified non-dependent name.

Reviewed By: ericniebler

Differential Revision: D4792087

fbshipit-source-id: dbb9d2c747432a1f9bc8823e72a7668e78a2fbaa
parent 08a2ff01
...@@ -28,7 +28,7 @@ StringPiece stringPieceDup(StringPiece piece, const Alloc& alloc) { ...@@ -28,7 +28,7 @@ StringPiece stringPieceDup(StringPiece piece, const Alloc& alloc) {
auto size = piece.size(); auto size = piece.size();
auto keyDup = typename Alloc::template rebind<char>::other(alloc) auto keyDup = typename Alloc::template rebind<char>::other(alloc)
.allocate(size); .allocate(size);
memcpy(keyDup, piece.data(), size * sizeof(typename StringPiece::value_type)); memcpy(keyDup, piece.data(), size * sizeof(StringPiece::value_type));
return StringPiece(keyDup, size); return StringPiece(keyDup, size);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment