
3 May
2008
3 May
'08
12:42 p.m.
OK I think I figured out the problem.
I think I did something stupid. I can't just take an undefined pointer and assign a number to the address it is pointing to.
class print{
int* count;
boost::asio::deadline_timer* t;
static int d_count;
public:
print (boost::asio::io_service& io, boost::asio::deadline_timer* timer)
: t(timer) {
d_count++;
std::cout<<"I'm in constructor: "<<*count<<" Addr of count:"<