2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-22 03:42:19 +00:00

Work around in this case pointless min/max rules for Boost

This commit is contained in:
Michael Stevens
2005-05-08 16:54:12 +00:00
parent b00e927014
commit a778933b3b
10 changed files with 12 additions and 12 deletions

View File

@@ -21,7 +21,7 @@ int main () {
using namespace boost::numeric::ublas;
matrix<double> m (3, 3);
vector<double> v (3);
for (unsigned i = 0; i < std::min (m.size1 (), v.size ()); ++ i) {
for (unsigned i = 0; i < (std::min) (m.size1 (), v.size ()); ++ i) {
for (unsigned j = 0; j < m.size2 (); ++ j)
m (i, j) = 3 * i + j;
v (i) = i;