|
-
November 2nd, 2003, 09:06 AM
#10
Junior Member
Yah slarty is correct.
Remember a templated function
template <>
void foo<1>();
is different then
template <>
void foo<2>();
So when foo<1>() calls foo<2>() it actually isn't calling the function recursively because each function will be generated by the compiler seperatly. Your compiler should fail the way slarty does and it fails because of the maximum depth templates can be generated which is an option that can be turned off.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|