Sign in to follow this  
Zbychs

*const cast problem

Recommended Posts

Zbychs    193
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
Sneftel    1788
Quote:
cannot convert parameter 1 from 'SimpleHTMLView::CSimpleHTMLView *const ' to 'SimpleHTML::CSimpleHTMLView *

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this