Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#22 ProxyArray doesn't compile without __NoP

closed-invalid
nobody
5
2002-11-09
2002-11-07
Kevin Gilpin
No

When I don't define __NoPartialSpec, ProxyArray fails
to compile with the errors:

d:\cpp\jnipp-src-0.4\cpp\net\sourceforge\jnipp\proxyarray.h(240)
: error C2989: 'ProxyArray<T,1>' : template class has
already been defined as a non-template class
d:\cpp\jnipp-src-0.4\cpp\net\sourceforge\jnipp\proxyarray.h(240)
: error C2988: unrecognizable template
declaration/definition

If I comment out the second declaration of ProxyArray
starting at line 141 it compiles OK.

Visual C++ 6.0

Discussion

  • Logged In: YES
    user_id=123204

    This is as designed -- the VC++ compiler does not support
    partial template specialization and is the sole reason for
    the #ifdefs. If you are using VC++, then you must #define this.

     
    • status: open --> closed-invalid