Jump to content
  • Advertisement
Sign in to follow this  
Zbychs

*const cast problem

This topic is 3048 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!