Minor fixes including removing <> from make_pair usage and using explicit conversions where required by the explicit constructor flags

Now builds/runs using c++11
This commit is contained in:
Anonymous
2014-01-23 08:55:46 -07:00
parent fabe85739d
commit e6431a9fd4
14 changed files with 34 additions and 49 deletions
@@ -66,22 +66,6 @@ namespace std
template <class _Key, class _Tp, class _Hash, class _Compare, class _Alloc> class unordered_map;
template <class _Key, class _Hash, class _Compare, class _Alloc> class unordered_set;
}
template <class ForwardIterator>
bool is_sorted (ForwardIterator first, ForwardIterator last)
{
if (first==last) return true;
ForwardIterator next = first;
while (++next!=last) {
if (*next<*first) // or, if (comp(*next,*first)) for version (2)
return false;
++first;
}
return true;
}
}
template <class _Tp, class _Alloc = std::allocator<_Tp> > struct stddeque