GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Boost-Python-Examples/Examples/inheritance at master · zpoint/Boost-Python-Examples

Expand file tree

/

inheritance

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

inheritance

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
README.md
README.md
 
 
inheritance.cpp
inheritance.cpp
 
 
makefile
makefile
 
 

README.md

Outline

inheritance

python3 inheritance
cd Boost-Python-Examples/Examples/inheritance
make
python3

Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import inheritance
>>> base = inheritance.Base()
Default constructor of Base

>>> derived = inheritance.Derived()
Default constructor of Base
Deault constructor of Derived

>>> inheritance.b(base)
Function b(Base *)
>>> inheritance.b(derived)
Function b(Base *)
>>> inheritance.d(base)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
Boost.Python.ArgumentError: Python argument types in
    inheritance.d(Base)
did not match C++ signature:
    d(Derived*)
>>> inheritance.d(derived)
Function d(Derived *)

>>> inheritance.factory()
Default constructor of Base
Deault constructor of Derived
<inheritance.Derived object at 0x7f24a17668a0>

>>> quit()
Destructor of Derived
Destructor of Base
Destructor of Base
Destructor of Derived
Destructor of Base
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.