#22 ProxyArray doesn't compile without __NoP

closed-invalid
nobody
5
2002-11-09
2002-11-07
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

  • Phillip E. Trewhella

    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.

     
  • Phillip E. Trewhella

    • status: open --> closed-invalid
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks