Jump to content

andresbrfz

Inactive Member
  • Posts

    10
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by andresbrfz

  1. 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;
    };
×
×
  • 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.