This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Two errors creating a converter between two types
- From: tirengarfio <tirengarfio at hotmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 23 Aug 2007 03:58:03 -0700 (PDT)
- Subject: Two errors creating a converter between two types
Hi,
im trying to create a converter between two types created by myself. When i
compile the code below, it give me this errors:
taquilla.h: 35:error: 'Ctaquilla::operator CEntrada*(int)' must take 'void'
taquilla.cpp: 35:error: 'Ctaquilla::operator CEntrada*(int)' must take
'void'
(In Spanish)
taquilla.h:35: error: âCTaquilla::operator CEntrada*(int)â debe tomar âvoidâ
taquilla.cpp:23: error: âCTaquilla::operator CEntrada*(int)â debe tomar
âvoidâ
/////////// taquilla.h ///////////////
class CTaquilla{
//...
public:
operator CEntrada* (int i);
};
//////////// taquilla.cpp ///////////
//...
CTaquilla::operator CEntrada* (int i)
{
return m_entradasEmitidas[i];
}
What's the problem?
br.
GARFF
--
View this message in context: http://www.nabble.com/Two-errors-creating-a-converter-between-two-types-tf4316781.html#a12291380
Sent from the gcc - Help mailing list archive at Nabble.com.