mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-10-27 03:49:57 +03:00
21 lines
370 B
C++
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;
|
|
}
|