Package: libccgnu2-1.7-0
Version: 1.7.3-1
Severity: important
A constructor exists, which tells the object no too use exceptions for error
reporting.
However, regardless of the parameter, it always throws.
See The attached testcase, which is to be compiled with
g++ -o testcase testcase.c -l ccgnu2
Output at my machine:
t...@mordor:~/workspace/solarpowerlog/testcases$ ./testcase
Fri May 22 16:00:32 2009
BUG: It was instructed NOT to throw.
Fri May 22 16:00:35 2009
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.29-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages libccgnu2-1.7-0 depends on:
ii libc6 2.9-12 GNU C Library: Shared libraries
ii libgcc1 1:4.4.0-5 GCC support library
ii libstdc++6 4.4.0-5 The GNU Standard C++ Library v3
ii zlib1g 1:1.2.3.3.dfsg-13 compression library - runtime
libccgnu2-1.7-0 recommends no packages.
libccgnu2-1.7-0 suggests no packages.
-- no debconf information
#include <vector>
#include <string>
#include <iostream>
#include <cc++/socket.h>
#include <cc++/address.h>
using namespace std;
// Debug Code dumpster....
int main() {
// Testcase for libconfig++
ost::TCPStream *stream;
ost::IPV4Host *host;
struct tm *local;
time_t t;
t = time(NULL);
local = localtime(&t);
std::cout << asctime(local) << std::endl;
host = new ost::IPV4Host("192.168.0.99");
try
{
stream = new ost::TCPStream( *host,
(ost::tpport_t)1234,
false,
(timeout_t)3000 );
}
catch (...)
{
cerr << "BUG: It was instructed NOT to throw." << endl;
}
t = time(NULL);
local = localtime(&t);
std::cout << asctime(local) << std::endl;
sleep(3);
return 0;
}