Jump to content

Recommended Posts

After updating my files to boost_1.59.0 i get an ambyguous error. I can't understand what's wrong because in boost 1.43 all work's fine.

This is my boost declaration and my function.

    boost::unordered_map<VID, size_t>::iterator iterTargetMap = rSkillUseInfo.TargetVIDMap.find(TargetVID);

if (rSkillUseInfo.TargetVIDMap.end() != iterTargetMap)
    {
        size_t MaxAttackCountPerTarget = 1;

        switch (SkillID)
            {
            case SKILL_SAMYEON:
            case SKILL_CHARYUN:
                MaxAttackCountPerTarget = 3;
                break;
            }

        if (iterTargetMap->second >= MaxAttackCountPerTarget)
            {
                sys_log(0, "SkillHack: Too Many Hit count from SkillID(%u) count(%u)", SkillID, iterTargetMap->second);
                return false;
            }

        iterTargetMap->second++;
    }
else
    {
        rSkillUseInfo.TargetVIDMap.insert( std::make_pair(TargetVID, 1) );
    }

I also tried with auto in c++11

auto iterator iterTargetMap = rSkillUseInfo.TargetVIDMap.find(TargetVID);

Here is my error log gcc49 I can't write here the error is too big.

I'am stucked on this error for 4 days. :(

Here is vid.h

class VID
{
public:
    VID() : m_id(0), m_crc(0)
    {
    }

    VID(DWORD id, DWORD crc)
    {
        m_id = id;
        m_crc = crc;
    }

    VID(const VID &rvid)
    {
        *this = rvid;
    }

    const VID & operator = (const VID & rhs)
    {
        m_id = rhs.m_id;
        m_crc = rhs.m_crc;
        return *this;
    }

    bool operator == (const VID & rhs) const
    {
        return (m_id == rhs.m_id) && (m_crc == rhs.m_crc);
    }

    bool operator != (const VID & rhs) const
    {
        return !(*this == rhs);
    }

    operator DWORD() const
    {
        return m_id;
    }

    void Reset()
    {
        m_id = 0, m_crc = 0;
    }

private:
    DWORD m_id;
    DWORD m_crc;
};
Link to comment
https://metin2.dev/topic/12325-upgrade-boost-to-159/
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.