
30 Jan
2006
30 Jan
'06
5:53 p.m.
"Andy Little" wrote
"Reece Dunn" <msclrhd@hotmail.com> 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