Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/libs/python/pyste/tests/inherit2.h @ 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: 578 bytes
Line 
1/* Copyright Bruno da Silva de Oliveira 2003. Use, modification and
2 distribution is subject to the Boost Software License, Version 1.0.
3 (See accompanying file LICENSE_1_0.txt or copy at
4 http:#www.boost.org/LICENSE_1_0.txt)
5 */
6namespace inherit2 {
7
8struct A
9{
10    int x;
11    int getx() { return x; }
12    int foo() { return 0; }
13    int foo(int x) { return x; }
14};
15
16struct B : A
17{
18    int y;
19    int gety() { return y; }
20    int foo() { return 1; }
21};
22
23struct C : B
24{
25    int z;
26    int getz() { return z; }
27};
28
29struct D : C
30{
31    int w;
32    int getw() { return w; }
33};
34
35}
Note: See TracBrowser for help on using the repository browser.