Hi Andy,

Thanks. I have not tried your code.

As a side note, this is still a problem (BUG) in Microsoft's
products... This is a post (from me!) in September of 2000 on 0 sized
arrays. It cites both ANSI 5.3.4.8 and MSDN documentation, where the
construct is allowed.
http://groups.google.com/group/microsoft.public.vc.stl/browse_thread/thread/a2d1367f2e232271/f78b293ef31831b7?lnk=st&q=array+%22jeffrey+walton%22&rnum=17&hl=en#f78b293ef31831b7

Jeff

On 11/12/06, Andy Finkenstadt <[EMAIL PROTECTED]> wrote:
template <int N>
struct Int2Type {
  enum { value = N; };
};

That might give you the type you need to specialize based on an int.
Int2Type<DIGESTSIZE> ;

not-wei, andy


Jeffrey Walton wrote:
>
> However, template <class T, class A = AllocatorWithCleanup<T> > class
> SecBlock is a different story. I can't Specialize a Template based on
> a Value (0) - only a type (unsigned int).



Reply via email to