3 * Author: Lukas Krejci <krejci.l@centrum.cz>, (C) 2008
4 * Copyright: See COPYING file that comes with this distribution
7 #include <boost/intrusive_ptr.hpp>
8 #include <beacon/reference_countable.hpp>
11 class tst
: public beacon::reference_countable
{
15 tst() {std::cout
<< "ctor\n";}
16 ~tst() {std::cout
<< "dtor\n";}
22 template<typename T
, typename Templated
= templated
<T
> >
24 typedef Templated type
;
27 int main(int argc
, char * argv
[]) {
29 boost::intrusive_ptr
<tst
> ptr
= new tst
;
31 boost::intrusive_ptr
<tst
> ptr2
= ptr
;