MantisBT - VCMI
View Issue Details
0001027VCMIOtherpublic2012-07-02 16:192014-05-30 17:41
monsignore 
Ivan 
normalminorN/A
closedfixed 
x86_64GentooLinux 3.3.8
0.89 
 
0001027: Boost & c++11 compile problems
ERMInterpreter.cpp line 379 (in void ERMInterpreter::scanForScripts()):
you should replace
std::string name = dir->path().leaf();
with
std::string name = dir->path().string();

leaf() function no longer convert path to string.

and something is wrong with typedef decltype in
VCAI.cpp line 997 (in VCAI::makeTurnInternal())
typedef decltype(*safeCopy.begin()) TItrType;
auto lockedHeroesSorter = [](TItrType h1, TItrType h2) -> bool
{
    return compareMovement (h1.first, h2.first);
};

I replaced it just with
auto lockedHeroesSorter = [](std::pair<HeroPtr, CGoal> h1, std::pair<HeroPtr, CGoal> h2) -> bool
{
    return compareMovement (h1.first, h2.first);
};

I'm using boost 1.48 and gcc 4.6
I dk if bugtracker is right place for it, but i cannot register on forum due to captha error(screenshot below)
No tags attached.
png screen.png (583,599) 2012-07-02 16:19
https://bugs.vcmi.eu/file_download.php?file_id=1006&type=bug
png
Issue History
2012-07-02 16:19monsignoreNew Issue
2012-07-02 16:19monsignoreFile Added: screen.png
2012-07-02 17:20IvanNote Added: 0002785
2012-07-02 18:34monsignoreNote Added: 0002787
2012-07-02 21:56IvanNote Added: 0002789
2012-07-02 21:56IvanStatusnew => resolved
2012-07-02 21:56IvanResolutionopen => fixed
2012-07-02 21:56IvanAssigned To => Ivan
2012-07-02 22:29TowNote Added: 0002790
2014-05-30 17:41beegeeStatusresolved => closed

Notes
(0002785)
Ivan   
2012-07-02 17:20   
I agree that "captcha" is a bit confusing. Read carefully:

Validation:
To make sure you are not a robot, please type the name of our project (4 letters, case doesn't matter)
(0002787)
monsignore   
2012-07-02 18:34   
omg, yes i really must read more carefully, but i quess constant text is not good validation, is it? This broken image so confusing btw.
(0002789)
Ivan   
2012-07-02 21:56   
Compilation should be fixed in rev 2771.

Regarding validation - feel free to post this on forums. I'm not admin so I can't do anything.
(0002790)
Tow   
2012-07-02 22:29   
> i quess constant text is not good validation, is it?

Quite the opposite. Before I "broke" captcha lots of spambots had been getting through, now they manage to validate very rarely.

> This broken image so confusing btw.

Yes, I am going to put there an image with the description.