浏览代码

gcc compilation fixed

Łukasz Wychrystenko 16 年之前
父节点
当前提交
ee29d3cf2b
共有 2 个文件被更改,包括 11 次插入0 次删除
  1. 9 0
      lib/Connection.cpp
  2. 2 0
      lib/Connection.h

+ 9 - 0
lib/Connection.cpp

@@ -141,6 +141,15 @@ CConnection::~CConnection(void)
 	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 [email protected] or [email protected]
+//    do not remove this exception it shoudnt be called
+    return *this;
+}
+
 void CConnection::close()
 {
 	if(socket)

+ 2 - 0
lib/Connection.h

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