|
Boost Users : |
Subject: [Boost-users] [ublas.matrix] Bug in reversed column
From: Yuan Yao (yaoyuan0123_at_[hidden])
Date: 2015-09-20 02:19:32
Dear all,
The following is a short example:
====================================================
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/matrix_proxy.hpp>
#include <boost/range/adaptors.hpp>
#include <iostream>
int main() {
boost::numeric::ublas::matrix<int> m(1, 2);
std::cout << boost::size(column(m, 0)) << "\n";
std::cout << boost::size(column(m, 0) | boost::adaptors::reversed)
<< "\n";
return 0;
}
====================================================
BOOST 1.59
VS 2015 outputs:
1
2147483649
CLANG on coliru outputs:
1
9223372036854775809
g++ on coliru outputs:
1
9223372036854775809
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net