Skip to content

gerdriesselmann/CPlusPlus-Object-Copy-and-Inheritence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is a simple test case to show a flaw in C++ object copy behavior, used in this G+ discussion: https://plus.google.com/u/0/104959288284643103419/posts/WH4aUJEdxZt

While one might expect, the code would print 

A
B

it indeed ouputs

A
A


About

A simple test case to demonstrate some C++ behavior

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published