[C++-sig] boost, const and problems

David Abrahams dave at boost-consulting.com
Mon Sep 12 00:19:57 CEST 2005


"Ralf W. Grosse-Kunstleve" <rwgk at yahoo.com> writes:

>> 2005/9/9, anewtroll <anewtroll at free.fr>:
>> > 
>> > Hi !
>> > As a newbie to boost.python, I would like to know why the "const"
>> > argument (i.e. void function(const float t){ ... }) causes an error when
>> > using the bjam (VC++6)
>
> IIRC, this is a general VC6 bug; "const float" or similar doesn't work with
> that compiler.
> Ralf

Just remove it from the function declaration; it has no effect there
anyway other than to mess up Boost.Python.  You can leave the const on
the function definition.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com




More information about the Cplusplus-sig mailing list