#5 Compilerfehler wenn _TARGET_BUILD nicht definiert

開啟中
dlack3 年之前創建 · 0 條評論

operator long long <=> operator int64_t operator unsigned long long <=> operator uint64_t

conversion function cannot be redeclared

https://gogs.reru.org/GfA/libgfaservices/src/master/common/mysqlwrap.h#L60

Änderungsvorschlag:

#ifdef _TARGET_BUILD
operator int64_t (void) const {
    ASSERT(m_bInteger && !IsNull());
    return m_bInteger ? m_numVal.iVal : 0;}

operator uint64_t (void) const {
    ASSERT(m_bInteger && !IsNull());
    return m_bInteger ? m_numVal.uVal : 0;}
#else
operator long long (void) const {
    ASSERT(m_bInteger && !IsNull());
    return m_bInteger ? (long long)m_numVal.iVal : 0;}

operator unsigned long long (void) const {
    ASSERT(m_bInteger && !IsNull());
    return m_bInteger ? (unsigned long long)m_numVal.uVal : 0;}
#endif  //  _TARGET_BUILD
operator long long <=> operator int64_t operator unsigned long long <=> operator uint64_t conversion function cannot be redeclared https://gogs.reru.org/GfA/libgfaservices/src/master/common/mysqlwrap.h#L60 Änderungsvorschlag: #ifdef _TARGET_BUILD operator int64_t (void) const { ASSERT(m_bInteger && !IsNull()); return m_bInteger ? m_numVal.iVal : 0;} operator uint64_t (void) const { ASSERT(m_bInteger && !IsNull()); return m_bInteger ? m_numVal.uVal : 0;} #else operator long long (void) const { ASSERT(m_bInteger && !IsNull()); return m_bInteger ? (long long)m_numVal.iVal : 0;} operator unsigned long long (void) const { ASSERT(m_bInteger && !IsNull()); return m_bInteger ? (unsigned long long)m_numVal.uVal : 0;} #endif // _TARGET_BUILD
登入 才能加入這對話。
未選擇標籤
未選擇里程碑
未指派成員
1 參與者
正在加載...
取消
保存
尚未有任何內容