Specialize string to identical string conversion
authorZejun Wu <watashi@fb.com>
Mon, 9 Jun 2014 17:16:31 +0000 (10:16 -0700)
committerAnton Likhtarov <alikhtarov@fb.com>
Mon, 9 Jun 2014 22:36:02 +0000 (15:36 -0700)
commit587427e7a45a508caa2f6c78176c5add4df08c45
tree2240afcbef47209a1070c48639c4c71963647164
parentaed6ef6fd357f48e0ebe9025d12021f73b00f812
Specialize string to identical string conversion

Summary:
Avoid copying underlying char array in to<string>(const string&) and
to<fbstring>(const fbstring&).

Test Plan: fbconfig -r $redteamisthebestteam/$nekomikoreimu && fbmake

Reviewed By: ldbrandy@fb.com

Subscribers: jonp, folly@lists

FB internal diff: D1368183

Tasks: 4263125
folly/Conv.h
folly/test/ConvTest.cpp