April 5, 2005

Executing a Subprocess

To be able to read from two streams, you need two threads. A common mistake is to start a process and then only read standard out (stdout. Another mistake is

Detect an Operator Overloading a Class

How can you detect if a class overloads a particular operator when you don’t have the source for the class? You can define the operator globally so that it accepts