|
Ublas : |
From: Gunter Winkler (guwi17_at_[hidden])
Date: 2006-09-21 03:26:28
On Monday 18 September 2006 17:41, Séverin Lemaignan wrote:
> Hello,
>
> I'm trying to port a Visual Studio 2003 project to Visual Studio 2005,
> and I get a strange error during the compilation process:
>
> In vector.hpp, line 293
> error C2064: term does not evaluate to a function taking 0 arguments
> error C2039: 'it_': is not a member of 'std::iterator<_Category,_Ty>'
>
> It looks like VS2005 confuses std::iterator and
> boost::numeric::ublas::vector<T,A>::iterator...
>
> I'm using Boost 1.33.1, compiled for MSVC8.
>
> Does someone have any idea ?
Yes. There was a similar question a few weeks ago.
Search the archive for
"VC2005 and boost error C2064: term does not evaluate to a function taking 0
arguments"
The short answer is:
> The workaround requires replacing the lines where the compiler flags errors.
>
> Where there was
> const_iterator (const iterator &it):
> you replace with
> const_iterator (const typename self_type::iterator &it): // ISSUE
> self_type::stops VC8 using std::iterator here
>
> Michael
mfg
Gunter