Add initializer_list support to folly::join
authorChip Turner <chip@fb.com>
Mon, 8 Jul 2013 19:36:53 +0000 (12:36 -0700)
committerSara Golemon <sgolemon@fb.com>
Thu, 18 Jul 2013 18:55:35 +0000 (11:55 -0700)
commitde064c41969e21fe5fc0ee96cd7496aa999a8701
tree36e4a894462834e53d6b45d6fe85e5838868d846
parentb5a0a9f7095fea0ed4c1074c60ec4a747a98fcc6
Add initializer_list support to folly::join

Summary:
Apparently the templates don't like to match the initlializer
list, so this needed to be added.  This allows for things like:

auto s = join(":", {val1, val2, val3, val4, val4});

Test Plan: run tests

Reviewed By: andrei.alexandrescu@fb.com

FB internal diff: D878032
folly/String.h
folly/test/StringTest.cpp