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:
parent
f45f7d19a0
commit
754ff4c2ee
@ -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;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user