![]() |
Blitz Support : |
From: Julian C. Cummings (cummings_at_[hidden])
Date: 2003-12-15 18:49:41
Hello Andrius,
I owe you an apology. My explanation of the error message was correct, but
I didn't realize that the error was actually emanating from code inside of
blitz. Even thought the error message cites line 7 of testTernary.cpp, the
real problem is within the blitz header file <blitz/array/functorExpr.h>.
We are missing the typename keyword in several places within the definitions
of the BZ_DECLARE_FUNCTOR and BZ_DECLARE_MEMBER_FUNCTION macros. I have
attached a corrected version of this header file, and I will check this into
the blitz cvs repository. Thanks for mentioning this problem.
Regards, Julian C.
Dr. Julian C. Cummings
Staff Scientist, CACR/Caltech
(626) 395-2543
cummings_at_[hidden]
> -----Original Message-----
> From: blitz-support-bounces_at_[hidden]
> [mailto:blitz-support-bounces_at_[hidden]] On Behalf Of
> Andrius Kurtinaitis
> Sent: Sunday, December 14, 2003 11:13 PM
> To: Support list for Blitz++
> Subject: Re: [Blitz-support] functors
>
>
> Julian,
> thanks for the explanation. Unfortunately it did not work.
> The only place in that simplistic example where i thought i can use
> typename, is this: BZ_DECLARE_FUNCTOR2( typename Mean )
> The compiler gives in this case some errors instead of the previous
> warnings...
> Andrius
>
> Julian C. Cummings wrote:
> > Andrius,
> >
> > The warning means that you should have used the "typename"
> keyword to
> > indicate that the expression that follows is a type. You
> need to use
> > "typename" whenever you are within some templated code and you are
> > extracting a template-dependent type using the :: operator.
> >
> > Regards, Julian C.
>