mosesdecoder/moses/TranslationModel/UG/test-iptr.cc
2015-06-05 22:29:26 +01:00

21 lines
370 B
C++

// -*- c++ -*-
#include <iostream>
#include <boost/smart_ptr/intrusive_ptr.hpp>
#include "generic/threading/ug_ref_counter.h"
using namespace std;
class X : public Moses::reference_counter
{
public:
X() { cout << "hello" << endl; }
~X() { cout << "bye-bye" << endl; }
};
int main()
{
boost::intrusive_ptr<X> i(new X);
// i.reset();
cout << "bla" << endl;
}