From c58b599184337ab2a48d96f4f055bc71ecd6ba29 Mon Sep 17 00:00:00 2001 From: Yedidya Feldblum Date: Wed, 29 Mar 2017 10:17:46 -0700 Subject: [PATCH] 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 --- folly/experimental/StringKeyedCommon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/experimental/StringKeyedCommon.h b/folly/experimental/StringKeyedCommon.h index eed9d101..c79d7b7c 100644 --- a/folly/experimental/StringKeyedCommon.h +++ b/folly/experimental/StringKeyedCommon.h @@ -28,7 +28,7 @@ StringPiece stringPieceDup(StringPiece piece, const Alloc& alloc) { auto size = piece.size(); auto keyDup = typename Alloc::template rebind::other(alloc) .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); } -- 2.34.1