| 1 |
#include "bar.h" |
| 2 |
|
| 3 |
boost::shared_ptr<Foo> g_foo; |
| 4 |
|
| 5 |
void function_that_takes_foo(boost::shared_ptr<Foo> foo) |
| 6 |
{ |
| 7 |
g_foo = foo; |
| 8 |
} |
| 9 |
|
| 10 |
boost::shared_ptr<Foo> function_that_returns_foo() |
| 11 |
{ |
| 12 |
return g_foo; |
| 13 |
} |
| 14 |
|
| 15 |
int Foo::instance_count = 0; |
| 16 |
|
| 17 |
|