Boost logo

Boost :

From: Chris Grayson (chris.grayson_at_[hidden])
Date: 2006-04-29 17:43:27


#include <iostream>
#include "Class1.h"
#include <boost/thread/thread.hpp>

main () {
        std::cout << "starting main()" << std::endl;

        Class1 c;
        c.noop();

        std::cout << "exiting main() normally" << std::endl;
}


#include <iostream>
#include "Class1.h"
#include <boost/thread/thread.hpp>

void Class1::noop () {
        std::cout << "entering Class1::noop()" << std::endl;
        try {
                std::cout << "..throwing exception" << std::endl;
                throw (2.1);
        }
        catch (...) {
                std::cout << "..caught exception in Class1.noop()" << std::endl;
        }
        std::cout << "..leaving Class1.noop()" << std::endl;
        return;
}

class Class1 {
public:
        void noop();
};


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk