yes it's a problem as both std::vector and ublas::vector have the same name. I recommend not including the full boost::numeric::ublas namespace. The STL vector is included boost/numeric/ublas/detail/vector_assign.hpp, which is itself included in vector.hpp
If you call it, let's say, ublas::vector with the right using directives, it should work.


On Thu, Mar 5, 2015 at 4:56 PM, Vincent K. Mu <kaide.mu@gmail.com> wrote:
Hi, all.
I was doing some tasks with Ublas library on Visual Studio and I found that when I wanted to define some vector, it has some ambiguity problem with STL vector and Ublas vector. I'm not sure what causes the problem since I only included Ublas vector.  Currently I'm aliasing an alternate namespace to  "boost::numeric::ublas" but I would like to know if there is any other solution to the above question.

Kaide Mu

ublas mailing list
Sent to: david.bellot@gmail.com