Re: Vector ambiguity
David Bellot <[email protected]>
| Newsgroups | gmane.comp.lib.boost.ublas |
|---|---|
| Message-ID | <CAOE6ZJFo24cbocQukhV1M9W_1r=hFSqPqphSJy1QMxdHDoBVpQ@mail.gmail.com> |
Hi, 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. Best, David On Thu, Mar 5, 2015 at 4:56 PM, Vincent K. Mu <[email protected]> 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. > > Regards, > Kaide Mu > > _______________________________________________ > ublas mailing list > [email protected] > http://lists.boost.org/mailman/listinfo.cgi/ublas > Sent to: [email protected] >