1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

gcc compilation fixed

This commit is contained in:
Łukasz Wychrystenko 2009-03-15 22:57:04 +00:00
parent cdc68a930b
commit ee29d3cf2b
2 changed files with 11 additions and 0 deletions

View File

@ -141,6 +141,15 @@ CConnection::~CConnection(void)
delete rmx; delete rmx;
} }
template<class T>
CConnection & CConnection::operator&(const T &t) {
throw new std::exception();
//XXX this is temporaly ? solution to fix gcc (4.3.3, other?) compilation
// problem for more details contact t0@czlug.icis.pcz.pl or impono@gmail.com
// do not remove this exception it shoudnt be called
return *this;
}
void CConnection::close() void CConnection::close()
{ {
if(socket) if(socket)

View File

@ -631,6 +631,8 @@ public:
int read(void * data, unsigned size); int read(void * data, unsigned size);
int readLine(void * data, unsigned maxSize); int readLine(void * data, unsigned maxSize);
void close(); void close();
template<class T>
CConnection &operator&(const T&);
~CConnection(void); ~CConnection(void);
}; };