From: Daniel James (daniel_at_[hidden])
Date: 2004-09-03 06:12:39
Peder Holt wrote:
> This compiles fine for VC 6.5 (so does the original example, so this
> is no proof of compliancy)
Unfortunately, it doesn't work on intel linux v8 in strict mode. As far
as I can tell, you can't use friend functions of templates in this
manner at all. In normal mode it works fine.
Also, you can't use large levels of recursion, the maximum is about 64,
so your start type is limited to counter<64>, or something similar. But
it's probably possible to use two counters.
I imagine this is probably similar on all EDG based compilers.