• Advertisement
Sign in to follow this  

*const cast problem

This topic is 2906 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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*".

Share this post


Link to post
Share on other sites
Advertisement
Quote:
cannot convert parameter 1 from 'SimpleHTMLView::CSimpleHTMLView *const ' to 'SimpleHTML::CSimpleHTMLView *

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement