Boost logo

Boost :

From: Andy Little (andy_at_[hidden])
Date: 2006-01-30 12:53:18


"Andy Little" wrote
>
> "Reece Dunn" <msclrhd_at_[hidden]> wrote

[...]

>> you can write:
>>
>> int strlen( const fixed_string_base< char >& str )
>> {
>> return str.length();
>> }
>
> Its possible to do this for fixed_string directly too.

[cut example coide]

Sorry.. that example was completely unnecessary.

I dont see whats wrong with just writing

 template< int n >
int strlen( const fixed_string< n, char >& str )
{
     return str.length();
}

Whats wrong with it?

regards
Andy Little


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