|
Boost : |
From: Daniel Frey (daniel.frey_at_[hidden])
Date: 2002-06-24 07:57:21
Daniel Frey wrote:
>
> The problem is, that it is a potential source of errors if applied to
> pointers. Usually, the code that compiles looks like:
>
> << sizeof_array( s2 ) << endl;
>
> Which outputs
Sorry, but this should read:
const char s1[] = "Hello, world!";
const char* s2 = "Hello, world!";
cout << sizeof_array( s1 ) << endl
<< sizeof_array( s2 ) << endl;
Regards, Daniel
-- Daniel Frey aixigo AG - financial training, research and technology Schloß-Rahe-Straße 15, 52072 Aachen, Germany fon: +49 (0)241 936737-42, fax: +49 (0)241 936737-99 eMail: daniel.frey_at_[hidden], web: http://www.aixigo.de
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk