moved the token invalidation from ~trackable to signal_base::do_disconnect where...
[beacon-ss.git] / test.cpp
blobe394fbd83a584577c6e5079143b2ba382902a946
1 /**
2 * beacon
3 * Author: Lukas Krejci <krejci.l@centrum.cz>, (C) 2008
4 * Copyright: See COPYING file that comes with this distribution
5 */
7 #include <boost/intrusive_ptr.hpp>
8 #include <beacon/reference_countable.hpp>
9 #include <iostream>
11 class tst : public beacon::reference_countable {
13 public:
15 tst() {std::cout << "ctor\n";}
16 ~tst() {std::cout << "dtor\n";}
19 template<typename T>
20 class templated {};
22 template<typename T, typename Templated = templated<T> >
23 class weird {
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;
33 return 0;