[C++-sig] bug with const double and msvc

David Abrahams dave at boost-consulting.com
Sat Mar 29 23:00:38 CET 2003


Niki Spahiev <spahievi at vega.bg> writes:

> Commented lines in attached code procude errors with msvc
> toolset. There is workaround which i can use thanks to pyste. I
> patched it to always cast member pointers and then removed all consts
> from const double.

The answer to this is to write the declarations without const.  The
definitions can still be written with const.  The bug in MSVC is that
it considers cv-qualifiers oni function arguments to be part of the
function type.

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





More information about the Cplusplus-sig mailing list