aboutsummaryrefslogtreecommitdiff
path: root/paludis
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-08-12 14:04:07 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-08-12 14:04:07 +0100
commitc3be2c0c889153faa7e5fd69defa5678a873a3e9 (patch)
tree65c468a87863e62d8d646266b711e5e3ba8185f1 /paludis
parent424de06050ce295a5d1a3dbeb8d49e1735b4ffa1 (diff)
downloadpaludis-c3be2c0c889153faa7e5fd69defa5678a873a3e9.tar.gz
paludis-c3be2c0c889153faa7e5fd69defa5678a873a3e9.tar.xz
0x has std::next, which messes with paludis::next because of ADL.
Diffstat (limited to 'paludis')
-rw-r--r--paludis/util/iterator_funcs.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/paludis/util/iterator_funcs.hh b/paludis/util/iterator_funcs.hh
index dbc9e7a5e..d125f6a31 100644
--- a/paludis/util/iterator_funcs.hh
+++ b/paludis/util/iterator_funcs.hh
@@ -29,6 +29,9 @@
namespace paludis
{
+#ifdef PALUDIS_HAVE_STD_NEXT
+ using std::next;
+#else
/**
* Return a new iterator pointing to the item after i.
*
@@ -59,6 +62,7 @@ namespace paludis
std::advance(result, n);
return result;
}
+#endif
/**
* Return a new iterator pointing to the item before i.