14.3.1 Template type arguments 2 A local type, a type with no linkage, an unnamed type or a type compounded from any of these types shall not be used as a templateargument for a template typeparameter.
>>56 class CHoge{ template< int n > inline int func() { return n + 1; } template< int n > static inline int operator ()() { return n + 3; } }; でいいんじゃない?試してないけど。
ISO_IEC 14882_1998 3.6.1 Main function 5 ... If control reaches the end of main without encountering a return statement, the effect is that of executing "return 0;".