is it a bug of boost::numeric::ublas?

I found a problem that the following simple code cant run correctly. Is it a bug within boost::numeric::ublas? The program crashs everytime and complains that
Check failed in file /usr/include/boost/numeric/ublas/detail/vector_assign.hpp at line 370:
detail::expression_type_check (v, cv)
terminate called after throwing an instance of 'boost::numeric::ublas::external_logic'
what(): external logic or bad condition of inputs
1
2
3
4
5
6
7
8
9
10
11
#include <iostream>
#include <boost/numeric/ublas/vector.hpp>
#include <boost/numeric/ublas/vector_proxy.hpp>

using namespace std;
namespace ublas = boost::numeric::ublas;

int main()
{
	ublas::vector<int> v = ublas::zero_vector<int>(10);
}
Last edited on
Topic archived. No new replies allowed.