2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-09 11:32:19 +00:00

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

svn path=/trunk/boost/libs/numeric/ublas/; revision=28741
This commit is contained in:
Michael Stevens
2005-05-08 16:54:12 +00:00
parent 2da4e44a37
commit 5ac0142852
10 changed files with 12 additions and 12 deletions

View File

@@ -20,7 +20,7 @@
int main () {
using namespace boost::numeric::ublas;
vector<double> v1 (3), v2 (3);
for (unsigned i = 0; i < std::min (v1.size (), v2.size ()); ++ i)
for (unsigned i = 0; i < (std::min) (v1.size (), v2.size ()); ++ i)
v1 (i) = v2 (i) = i;
std::cout << v1 + v2 << std::endl;