1 // Copyright David Abrahams 2001.
2 // Distributed under the Boost Software License, Version 1.0. (See
3 // accompanying file LICENSE_1_0.txt or copy at
4 // http://www.boost.org/LICENSE_1_0.txt)
5 #ifndef COMPLICATED_DWA20011215_HPP
6 # define COMPLICATED_DWA20011215_HPP
9 # include "simple_type.hpp"
13 complicated(simple const&, int = 0);
22 inline complicated::complicated(simple const&s, int _n)
25 std::cout << "constructing complicated: " << this->s << ", " << _n << std::endl;
28 inline complicated::~complicated()
30 std::cout << "destroying complicated: " << this->s << ", " << n << std::endl;
33 inline int complicated::get_n() const
38 #endif // COMPLICATED_DWA20011215_HPP