> Why don't you simply use a C++ static_assert? > > static_assert(foo==bar, "foo should have been bar"); C++ 03. Jeff