Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/libs/python/test/complicated.hpp @ 45

Last change on this file since 45 was 29, checked in by landauf, 17 years ago

updated boost from 1_33_1 to 1_34_1

File size: 829 bytes
Line 
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
7# include <iostream>
8
9# include "simple_type.hpp"
10
11struct complicated
12{
13    complicated(simple const&, int = 0);
14    ~complicated();
15
16    int get_n() const;
17
18    char* s;
19    int n;
20};
21
22inline complicated::complicated(simple const&s, int n)
23    : s(s.s), n(n)
24{
25    std::cout << "constructing complicated: " << this->s << ", " << n << std::endl;
26}
27
28inline complicated::~complicated()
29{
30    std::cout << "destroying complicated: " << this->s << ", " << n << std::endl;
31}
32
33inline int complicated::get_n() const
34{
35    return n;
36}
37
38#endif // COMPLICATED_DWA20011215_HPP
Note: See TracBrowser for help on using the repository browser.