2009-05-30 00:32:43 PDT
Here is part of my actual code:
namespace type_information
{
template<>
struct type_limit<long double,sizeof(long double)>
{
static long double MIN() { .... }
}
}
Do you see how they DO pose a problem in well written code?
The "this is bad" refers to the fact that internal implementation of WIn32++ leaks outside it and stomps over completely unrelated code. I **LIKE** the headers-only implementation of WIn32. It makes it so easy to just put it in a solution and use it.
My current solution for the problem is to #undef MIN/MAX right after I include win32++ headers so it's just a minor inconvinience.