*const cast problem

Started by
1 comment, last by Zbychs 14 years, 1 month ago
Hi I'm getting this error in VS 2005:
error C2664: 'SimpleHTML::CssIntParser' : cannot convert parameter 1 from 'SimpleHTMLView::CSimpleHTMLView *const ' to 'SimpleHTML::CSimpleHTMLView *'
While CssIntParser is declared like this:
CssIntParserBinder<CSimpleHTMLView, const String&> CssIntParser(CSimpleHTMLView* that);
Anyone has an idea why "some_type_T *const" can't be converted to "some_type_T *" when passing by value? And please note that it's "some_type_T *const", not "some_type_T const*".
Advertisement
Quote:cannot convert parameter 1 from 'SimpleHTMLView::CSimpleHTMLView *const ' to 'SimpleHTML::CSimpleHTMLView *
Thanks Sneftel, you're so right! Silly me :)

This topic is closed to new replies.

Advertisement