Prefixed ui element classes with Element.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@359 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-03-17 18:53:15 +00:00
parent 2ded36e38e
commit 73fb55ae42
17 changed files with 212 additions and 89 deletions
+4 -3
View File
@@ -75,9 +75,10 @@ advance_bidirectional(_InputIter __first, _InputIter __middle1, _InputIter __las
return std::make_pair(__middle1, __middle2);
}
template <typename _Value>
struct
string_starts_with : public std::binary_function<std::string, std::string, bool> {
bool operator () (const std::string& complete, const std::string& base) const {
compare_base : public std::binary_function<_Value, _Value, bool> {
bool operator () (const _Value& complete, const _Value& base) const {
return !complete.compare(0, base.size(), base);
}
};
@@ -110,7 +111,7 @@ make_base(_InputIter __first, _InputIter __last) {
typename std::iterator_traits<_InputIter>::difference_type __pos = count_base(__base.begin(), __base.end(),
__first->begin(), __first->end());
if (__pos < __base.size())
if (__pos < (typename std::iterator_traits<_InputIter>::difference_type)__base.size())
__base.resize(__pos);
}