Files
smart_ptr/example/scoped_ptr_example.cpp
Peter Dimov 98fa979aef Added copyright.
[SVN r17197]
2003-02-04 13:35:06 +00:00

25 lines
783 B
C++

// Boost scoped_ptr_example implementation file -----------------------------//
// (C) Copyright Beman Dawes 2001. Permission to copy,
// use, modify, sell and distribute this software is granted provided this
// copyright notice appears in all copies. This software is provided "as is"
// without express or implied warranty, and with no claim as to its
// suitability for any purpose.
// See http://www.boost.org for most recent version including documentation.
#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() {}