Two errors creating a converter between two types

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux