Commit 179e9a12 authored by Scott Wolchok's avatar Scott Wolchok Committed by Facebook Github Bot

Don't include FBVector.h in String.h

Summary: No need for String to import fbvector.

Reviewed By: yfeldblum

Differential Revision: D13007715

fbshipit-source-id: c61639a04273f14dd3daf230ee6ed9ade93d058e
parent cb838d11
...@@ -395,7 +395,7 @@ template <class Delim, class String, class OutputType> ...@@ -395,7 +395,7 @@ template <class Delim, class String, class OutputType>
void split( void split(
const Delim& delimiter, const Delim& delimiter,
const String& input, const String& input,
fbvector<OutputType>& out, fbvector<OutputType, std::allocator<OutputType>>& out,
bool ignoreEmpty) { bool ignoreEmpty) {
detail::internalSplit<OutputType>( detail::internalSplit<OutputType>(
detail::prepareDelim(delimiter), detail::prepareDelim(delimiter),
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include <folly/Conv.h> #include <folly/Conv.h>
#include <folly/ExceptionString.h> #include <folly/ExceptionString.h>
#include <folly/FBString.h> #include <folly/FBString.h>
#include <folly/FBVector.h>
#include <folly/Portability.h> #include <folly/Portability.h>
#include <folly/Range.h> #include <folly/Range.h>
#include <folly/ScopeGuard.h> #include <folly/ScopeGuard.h>
...@@ -423,11 +422,14 @@ void split( ...@@ -423,11 +422,14 @@ void split(
std::vector<OutputType>& out, std::vector<OutputType>& out,
const bool ignoreEmpty = false); const bool ignoreEmpty = false);
template <class T, class Allocator>
class fbvector;
template <class Delim, class String, class OutputType> template <class Delim, class String, class OutputType>
void split( void split(
const Delim& delimiter, const Delim& delimiter,
const String& input, const String& input,
folly::fbvector<OutputType>& out, folly::fbvector<OutputType, std::allocator<OutputType>>& out,
const bool ignoreEmpty = false); const bool ignoreEmpty = false);
template < template <
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include <folly/DynamicConverter.h> #include <folly/DynamicConverter.h>
#include <folly/FBVector.h>
#include <folly/portability/GTest.h> #include <folly/portability/GTest.h>
#include <algorithm> #include <algorithm>
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <boost/regex.hpp> #include <boost/regex.hpp>
#include <folly/FBVector.h>
#include <folly/container/Array.h> #include <folly/container/Array.h>
#include <folly/portability/GTest.h> #include <folly/portability/GTest.h>
#include <folly/test/TestUtils.h> #include <folly/test/TestUtils.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment