File: test_overrides.hpp

package info (click to toggle)
pygccxml 3.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,444 kB
  • sloc: xml: 29,841; python: 13,914; cpp: 2,671; makefile: 163; ansic: 59
file content (29 lines) | stat: -rw-r--r-- 520 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright 2020 Insight Software Consortium.
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
#ifndef simple_h
#define simple_h

#include <iostream>
class base
{
public:
  base() {};
  ~base() {};
  virtual int goodbye(int num_ref, int num_times) = 0;
};

class simple : public base
{
public:
  simple() {};
  ~simple() {};
  int hello() { return 0; };
  int goodbye(int , int) override
    {
      std::cout << "goodbye\n";
      return 10;
    } ;
};

#endif