Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/libs/python/pyste/tests/abstract_test.h @ 13

Last change on this file since 13 was 12, checked in by landauf, 17 years ago

added boost

File size: 467 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 */ 
6#include <vector>
7#include <string>
8
9namespace abstract {
10   
11struct A {
12    virtual ~A() {}
13    virtual std::string f()=0;
14};
15
16struct B: A {
17    std::string f() { return "B::f"; }
18};
19
20std::string call(A* a) { return a->f(); }
21 
22}
Note: See TracBrowser for help on using the repository browser.