Require fbstring be used with std::allocator
Summary: basic_fbstring provides an allocator template paramater for compatibility with basic_string, but ignores it. Assert at compile time that a custom allocator isn't used. This would have prevented the regression introduced in D22970418 (https://github.com/facebook/folly/commit/abb4ece62120ff32aaf28dc4bbfdc6a2f2b41f78) and fixed in D23035304 (https://github.com/facebook/folly/commit/8b650246220717f27046593b5819fbaa60427bcb). Reviewed By: luciang Differential Revision: D23144806 fbshipit-source-id: c541f274e97736b9408651a66088bcbb78025539
Showing
Please register or sign in to comment