Archive for February 16th, 2008

Automatic Adaptation in C++

February 16th, 2008 | Category: C++, Programming

The adapter pattern is used to implement an interface required by one library in terms of an object declared in another. It’s a useful pattern, but implementing it can be a pain. You have to manually adapt objects as you get them and then you have to remember to clean up the adapter objects when you are done. Here is a way to have the compiler do it all for you in C++.
Read more

Comments are off for this post