C/C++
polycpp.txt
Associated article: Simulating Polymorphic Operators in C++
Tags: .NET Security C/C++ Open Source Parallel Design
Published source code accompanying the article by Michael Dowell in which he presents three different techniques for making operators polymorphic.
Simulating Polymorphic Operators in C++
by Michael Dowell
Listing One
class Employee
{
public:
friend ostream& operator<<(ostream& os, const Employee & aEmployee);
virtual ostream& print(ostream& os) const;
};
class Manager : public Employee
{
public:
friend ...


