2001-05-22 18:58:21 +00:00
|
|
|
// Boost scoped_ptr_example implementation file -----------------------------//
|
|
|
|
|
2004-07-25 12:01:00 +00:00
|
|
|
// Copyright Beman Dawes 2001. Distributed under the Boost
|
|
|
|
// Software License, Version 1.0. (See accompanying file
|
|
|
|
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
|
2003-02-04 13:35:06 +00:00
|
|
|
|
2003-09-12 17:09:29 +00:00
|
|
|
// See http://www.boost.org/libs/smart_ptr for documentation.
|
2003-02-04 13:35:06 +00:00
|
|
|
|
2001-05-22 18:58:21 +00:00
|
|
|
#include "scoped_ptr_example.hpp"
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
class example::implementation
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
~implementation() { std::cout << "destroying implementation\n"; }
|
|
|
|
};
|
|
|
|
|
|
|
|
example::example() : _imp( new implementation ) {}
|
|
|
|
|
|
|
|
void example::do_something() { std::cout << "did something\n"; }
|
|
|
|
|
|
|
|
example::~example() {}
|