This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]