https://github.com/midnighter/polymorphiccpp
Classes and functions demonstrating some of the tricky polymorphic behaviour of C++
https://github.com/midnighter/polymorphiccpp
Last synced: 10 months ago
JSON representation
Classes and functions demonstrating some of the tricky polymorphic behaviour of C++
- Host: GitHub
- URL: https://github.com/midnighter/polymorphiccpp
- Owner: Midnighter
- Created: 2010-07-19T14:26:33.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2010-07-19T14:53:51.000Z (almost 16 years ago)
- Last Synced: 2025-01-04T20:15:07.141Z (over 1 year ago)
- Language: C++
- Homepage:
- Size: 89.8 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
PolymorphicCpp github repository information.
2010-07-19
This repository contains a number of classes and functions that demonstrate some
of the trickier polymorphic behaviour of C++. The code is heavily inspired by
Richard Gillam's articles on the assignment operator. They can be found at:
http://icu-project.org/docs/papers/cpp_report/the_anatomy_of_the_assignment_operator.html
http://icu-project.org/docs/papers/cpp_report/the_assignment_operator_revisited.html
Each of the source files in this repository is stand-alone and compiles with an
installation of stdc++.
I'm very thankful for feedback and suggestions regarding examples, use-cases,
and style, please do not hesitate to contact me.
Introduction to the source files:
'same_type_assignment.cpp' demonstrates how polymorphic assignment can be
implemented if you know you will only ever assign classes of the same type.