Boost logo

Boost :

From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2002-05-31 23:43:47


"Victor A. Wagner, Jr." <vawjr_at_[hidden]> wrote in message
news:4.3.1.2.20020531212236.0344fbd0_at_mail.rudbek.com...

> >error C2664: 'test' : cannot convert parameter 1 from 'char ** ' to
'const
> >char ** '
> >Conversion loses qualifiers
>
> The following DOES compile on MSVC6 SP5 and MSVC.NET
>
> typedef char* charstar;
> void test(const charstar* ) { }

the thing is that const char** == char const* *, while
                       const charstar* == char *const *

Use boost coding guidance to avoid confusion

Gennadiy.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk