Use std namespace for div function

Although GCC 4.6.3 implements div by including stdlib.h (where
everything is put in the global namespace), and then importing these
into std, not every compiler does this (one could for instance think
that in #include <stdlib.h> inside the namespace).
This commit is contained in:
Roland Kaufmann 2013-11-22 11:08:37 +01:00
parent f45f7d19a0
commit 754ff4c2ee

View File

@ -199,7 +199,7 @@ private:
assert(stride > 0 && stride < num - offset);
// number of (strided) entries it will provide
const div_t d = div (data.size () - offset, stride);
const div_t d = std::div (data.size () - offset, stride);
return d.quot;
}
};