[C++-sig] [boost.python] char arrays in structs
David Abrahams
dave at boost-consulting.com
Mon Jul 4 23:01:08 CEST 2005
"Ralf W. Grosse-Kunstleve" <rwgk at yahoo.com> writes:
> --- David Abrahams <dave at boost-consulting.com> wrote:
>
>> "Ralf W. Grosse-Kunstleve" <rwgk at yahoo.com> writes:
>>
>> >
>> > Here bar_t is equivalent to a plain char*. The size information is lost.
>> This
>> > due to the C heritage.
>>
>> That's incorrect.
>
> Oh, sorry.
> What is correct then?
The size information is not lost; the parameter type is
char const(&)[4]
> Why would I want to use "boost::array<char, 4>" instead of "typedef
> char[4]"?
I don't know; I never suggested that idea. Wasn't that your
suggestion?
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list