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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user