Boost logo

Boost :

From: Patrick Kowalzick (Patrick.Kowalzick_at_[hidden])
Date: 2003-06-03 09:22:23


Hello Justinas,

> I don't know where to upload this piece of code currently so I beg you
> pardon for sending an attachment. BTW, it is by no means a final
> implementation of things I've just written above. It's just an initial
piece
> of code - constructive comments, etc. would be nice :)

This code below is not compiling with Borland

#include <vector> // only for size_t
template <typename T,size_t> class X;
template <typename T> class X<T,0> {};

int main() {
    X<int,0> x;
    return 0;
}

The size_t for the second template is the cause. It compiles with
    template <typename T,int> class X;
or in main()
    X<int,size_t(0)> x;

I think it could be a similar case in your tiny_vector definition.

Regards,
Patrick


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk