소스 검색

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);
 };