From: Jose Roman Bilbao <jrbcast@dali.ace.ual.es>
To: gcc-help@gcc.gnu.org
Subject: Please, help with a weir error on templates.
Date: Wed, 17 Mar 2004 15:34:00 -0000 [thread overview]
Message-ID: <1079534582.10524.9.camel@gris.ace.ual.es> (raw)
Hi all,
I am not a member of this list, therefore I will be grateful if you CC
me a copy of your responses.
I have the next problem with a source file:
When compiler reaches the next code:
template <>
void core_array_by_scalar< complex<double> >(const maTC &op1,
const complex<double> &op2, maTC &result, char operation) _THROW {
it complains with:
Src/MultidimBasic.inc:332: error: `double_complex' was not declared in
this scope
Src/MultidimBasic.inc:332: error: template argument 1 is invalid
Well, I have included:
#include <complex>
Some time ago it was compiled with complex.h and it did works. Now it
does if I change it back. The most strage thing (for me) is that this
part of code compiles well with <complex> in the same file:
bool operator == (const ma< complex<double> > &op1, const ma<
complex<double> > &op2) {
On the other hand, if I change <complex.h> to something similat to that
found on complex.h so:
#include <complex>
using std::complex;
typedef complex<float> float_complex;
typedef complex<double> double_complex;
typedef complex<long double> long_double_complex;
It does compile perfectly... I am puzzled. Can you explain me which is
the error please?.
Thank you very much,
Roman
next reply other threads:[~2004-03-17 14:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-17 15:34 Jose Roman Bilbao [this message]
[not found] ` <200403180007.51842.alexjdam@yahoo.com.br>
2004-03-18 15:19 ` Jose Roman Bilbao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1079534582.10524.9.camel@gris.ace.ual.es \
--to=jrbcast@dali.ace.ual.es \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).