(Folly/Gen) Fix compilation with clang
Summary: Clang chokes because it tries to instantiate both versions of `from<const int*>`, one of which calls `std::begin(const int*)`, which doesn't work. By casting the intializer list to the right type, it can pick the overload. Clang, because it makes debugging these templates so much better. Test Plan: `fbconfig --clang folly/gen/test && fbmake runtests_dbg` Reviewed By: tjackson@fb.com FB internal diff: D1280888
Showing
Please register or sign in to comment