Fix unsplit(", ")
authorTom Jackson <tjackson@fb.com>
Wed, 13 Mar 2013 20:56:29 +0000 (13:56 -0700)
committerJordan DeLong <jdelong@fb.com>
Tue, 19 Mar 2013 00:09:10 +0000 (17:09 -0700)
commit76d60885da567e2ae9e4cc454bb8eefe869f8943
tree344c8589874ffdf94b1b70e35d15c77e2f7eb9ac
parent1bf1654c689b31ac7b53f499b8f1810548fbda7a
Fix unsplit(", ")

Summary: Otherwise you get errors like `error: array used as initializer ./folly/experimental/StringGen-inl.h: In constructor â€˜folly::gen::detail::UnsplitBuffer<Delimiter, OutputBuffer>::UnsplitBuffer(const Delimiter&, OutputBuffer*) [with Delimiter = char [3] ...]`, since literal strings bind as reference to fixed-length character arrays. Providing an explicit overload for `const char*` fixes this.

Test Plan: Unit tests

Reviewed By: tulloch@fb.com

FB internal diff: D737117
folly/experimental/StringGen.h
folly/experimental/test/GenTest.cpp