diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-01-05 00:00:04 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-01-05 00:00:04 +0400 |
commit | 43337dfde3f172099626606dacab2234f3563ac9 (patch) | |
tree | 3f0250fc57c6a3b014380310427aa116f1d7d70a /util/string_piece.hh | |
parent | 1dfbe1113c39f5611024c113206b96696f7184a8 (diff) |
get rid of HAVE_BOOST macro. Always has boost now
Diffstat (limited to 'util/string_piece.hh')
-rw-r--r-- | util/string_piece.hh | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/util/string_piece.hh b/util/string_piece.hh index ff18744bc..163fe62d3 100644 --- a/util/string_piece.hh +++ b/util/string_piece.hh @@ -49,11 +49,7 @@ #define BASE_STRING_PIECE_H__ #include "util/have.hh" - -#ifdef HAVE_BOOST #include <boost/functional/hash/hash.hpp> -#endif // HAVE_BOOST - #include <cstring> #include <iosfwd> #include <ostream> @@ -256,7 +252,6 @@ inline std::ostream& operator<<(std::ostream& o, const StringPiece& piece) { return o.write(piece.data(), static_cast<std::streamsize>(piece.size())); } -#ifdef HAVE_BOOST inline size_t hash_value(const StringPiece &str) { return boost::hash_range(str.data(), str.data() + str.length()); } @@ -290,7 +285,6 @@ template <class T> typename T::iterator FindStringPiece(T &t, const StringPiece return t.find(key, StringPieceCompatibleHash(), StringPieceCompatibleEquals()); #endif } -#endif #ifdef HAVE_ICU U_NAMESPACE_END |