Jump to content

Ranking System - code changed from 2019 to 2013 - Problem


Recommended Posts

Hi, could you please help me upgrade to Visual Studio 2013? Currently I have yes, but I always have a bug.

I've changed most, made a million tries but still don't understand why I can't compile

i try this with unique_ptr / auto_ptr / shared_ptr / but nothing

 

Error    27    error C2664: 'bool (__vectorcall *)(std::auto_ptr<CPythonRanking::SRankingData> &)' : cannot convert argument 1 from 'const std::auto_ptr<CPythonRanking::SRankingData>' to 'std::auto_ptr<CPythonRanking::SRankingData> &'    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\algorithm    44    1    UserInterface
 

my current files:

PythonRaking.cpp

https://pastebin.com/j6MDesD5

PyhonRanking.h

https://pastebin.com/FRBq2W8M

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

8 minutes ago, Kidro said:

change auto_ptr with unique_ptr

I've done that before - no change

This is what the original files look like without editing. There has always been a problem with shared_ptr

PythonRaking.cpp

https://pastebin.com/5WweZdLR

PyhonRanking.h

https://pastebin.com/vJvSDUE7

Edited by santa12
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.