On Tue, 04 Oct 2005 09:02:17 -0700, bsmatt wrote:
In other situations I am using __FILE__ and
__LINE__ so that I can see exactly where a "new" happens. I would like
to get enough info to a least know what STL object the memory is
allocated for (in my example I would like to know that the allocation
was associated with the definition of test). Got any suggestions on how
I can accomplish this?
How about instead of:
MyClass<int, "blah", 5> test;
you use:
MyClass<int, 5> test("blah");
or even:
MyClass<int> test("blah", 5);
and write the appropriate constructor.
Is there a reason to have a separate type for each instance where it's
used?
- Jay