Boost logo

Ublas :

Subject: Re: [ublas] Compilation error: error: expected nested-name-specifier before ‘VEC_T’
From: Parker Jones (zoubidoo_at_[hidden])
Date: 2009-12-11 10:54:28


Fantastic! That worked and the application now compiles fine.

I would have searched a long time to find the solution on my own. Thank you very much Rutger.
Parker

> To: ublas_at_[hidden]
> From: rutger_at_[hidden]
> Date: Fri, 11 Dec 2009 16:44:23 +0100
> Subject: Re: [ublas] Compilation error: error: expected nested-name-specifier before ‘VEC_T’
>
> Parker Jones wrote:
> >
> > Hello all,
> >
> > I am compiling someone else's C++ application that uses UBLAS and am
> > getting a compilation error:
> >
> > $ g++ distance.h
> > distance.h:16: error: expected nested-name-specifier before ‘VEC_T’
> > distance.h:16: error: expected ‘;’ before ‘vector_type’
> > distance.h:33: error: expected nested-name-specifier before ‘VEC_T’
> > distance.h:33: error: expected ‘;’ before ‘vector_type’
> >
> > Platform: Ubuntu 9.10, g++4.4, Boost 1.38.
> > I haven't touched C++ in over 10 years, so apologies if this is a trivial
> > question.
> >
> > Many thanks for any suggestions,
> > Parker
> >
>
> The compiler is complaining that a "typename" keyword is used, whereas there
> is no nested type defined. For example,
>
> template< typename Vector >
> struct something {
> typedef Vector vector_type;
> typedef typename vector::value_type value_type;
> };
>
> I.e., try removing the typename keyword from lines 16 and 33.
>
> Cheers,
>
> Rutger
>
>
>
>
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas
> Sent to: zoubidoo_at_[hidden]
                                               
_________________________________________________________________
View photos of singles in your area. Click here
http://clk.atdmt.com/NMN/go/163036679/direct/01/