Boost logo

Boost :

From: Toon Knapen (toon.knapen_at_[hidden])
Date: 2002-01-21 15:32:24


jhrwalter wrote:

>>Basically, just use a function like this:
>>
>> template<int N> ... size(Int<N>);
>>
>>Works in MSVC++ 6 and has neat syntax.
>>
>
> How do you like the idea of using free functions like
>
> template<class M, int N>
> size_t size (const M &m, int<N>);
>
> for these operations instead?

I would find it less intuitive.

Would a free function be possible in MSVC, but a template member
function would not ? (I'm not familiar with MSVC)


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