Latest Integer/Decimal/Float changes break Windows build

Bug #983628 reported by Paul J. Lucas
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
Critical
Paul J. Lucas

Bug Description

I happen to think the Windows compiler is just plain wrong. The entire *point* of enable_if is to be able to use it via the C++ SFINAE technique. The compiler happily accepts enable_if in other contexts. Sigh....

decimal.cpp
C:\dev\bug867112\src\zorbatypes\decimal.cpp(260) : error C2794: 'type' : is not a member of any direct or indirect base class of 'std::tr1::enable_if<_Test,_Type>'
        with
        [
            _Test=false,
            _Type=zorba::Decimal &
        ]
C:\dev\bug867112\src\zorbatypes\decimal.cpp(261) : error C2794: 'type' : is not a member of any direct or indirect base class of 'std::tr1::enable_if<_Test,_Type>'
        with
        [
            _Test=false,
            _Type=zorba::Decimal &
        ]
C:\dev\bug867112\src\zorbatypes\decimal.cpp(295) : error C2794: 'type' : is not a member of any direct or indirect base class of 'std::tr1::enable_if<_Test,_Type>'
        with
        [
            _Test=false,
            _Type=zorba::IntegerImpl<__int64>
        ]
C:\dev\bug867112\src\zorbatypes\decimal.cpp(295) : error C2794: 'type' : is not a member of any direct or indirect base class of 'std::tr1::enable_if<_Test,_Type>'
        with
        [
            _Test=false,
            _Type=zorba::IntegerImpl<unsigned __int64>
        ]
C:\dev\bug867112\src\zorbatypes\decimal.cpp(296) : error C2794: 'type' : is not a member of any direct or indirect base class of 'std::tr1::enable_if<_Test,_Type>'
        with
        [
            _Test=false,
            _Type=zorba::IntegerImpl<__int64>
        ]
C:\dev\bug867112\src\zorbatypes\decimal.cpp(296) : error C2794: 'type' : is not a member of any direct or indirect base class of 'std::tr1::enable_if<_Test,_Type>'
        with
        [
            _Test=false,
            _Type=zorba::IntegerImpl<unsigned __int64>
        ]
C:\dev\bug867112\src\zorbatypes\decimal.cpp(297) : error C2794: 'type' : is not a member of any direct or indirect base class of 'std::tr1::enable_if<_Test,_Type>'
        with
        [
            _Test=false,
            _Type=zorba::IntegerImpl<__int64>
        ]
C:\dev\bug867112\src\zorbatypes\decimal.cpp(297) : error C2794: 'type' : is not a member of any direct or indirect base class of 'std::tr1::enable_if<_Test,_Type>'
        with
        [
            _Test=false,
            _Type=zorba::IntegerImpl<unsigned __int64>
        ]
C:\dev\bug867112\src\zorbatypes\decimal.cpp(298) : error C2794: 'type' : is not a member of any direct or indirect base class of 'std::tr1::enable_if<_Test,_Type>'
        with
        [
            _Test=false,
            _Type=zorba::IntegerImpl<__int64>
        ]
C:\dev\bug867112\src\zorbatypes\decimal.cpp(298) : error C2794: 'type' : is not a member of any direct or indirect base class of 'std::tr1::enable_if<_Test,_Type>'
        with
        [
            _Test=false,
            _Type=zorba::IntegerImpl<unsigned __int64>
        ]
C:\dev\bug867112\src\zorbatypes\decimal.cpp(299) : error C2794: 'type' : is not a member of any direct or indirect base class of 'std::tr1::enable_if<_Test,_Type>'
        with
        [
            _Test=false,
            _Type=zorba::IntegerImpl<__int64>
        ]
C:\dev\bug867112\src\zorbatypes\decimal.cpp(299) : error C2794: 'type' : is not a member of any direct or indirect base class of 'std::tr1::enable_if<_Test,_Type>'
        with
        [
            _Test=false,
            _Type=zorba::IntegerImpl<unsigned __int64>
        ]
C:\dev\bug867112\src\zorbatypes\decimal.cpp(320) : error C2794: 'type' : is not a member of any direct or indirect base class of 'std::tr1::enable_if<_Test,_Type>'
        with
        [
            _Test=false,
            _Type=bool
        ]
C:\dev\bug867112\src\zorbatypes\decimal.cpp(320) : error C2794: 'type' : is not a member of any direct or indirect base class of 'std::tr1::enable_if<_Test,_Type>'
        with
        [
            _Test=false,
            _Type=bool
        ]
C:\dev\bug867112\src\zorbatypes\decimal.cpp(321) : error C2794: 'type' : is not a member of any direct or indirect base class of 'std::tr1::enable_if<_Test,_Type>'
        with
        [
            _Test=false,
            _Type=bool
        ]
C:\dev\bug867112\src\zorbatypes\decimal.cpp(321) : error C2794: 'type' : is not a member of any direct or indirect base class of 'std::tr1::enable_if<_Test,_Type>'
        with
        [
            _Test=false,
            _Type=bool
        ]
C:\dev\bug867112\src\zorbatypes\decimal.cpp(322) : error C2794: 'type' : is not a member of any direct or indirect base class of 'std::tr1::enable_if<_Test,_Type>'
        with
        [
            _Test=false,
            _Type=bool
        ]
C:\dev\bug867112\src\zorbatypes\decimal.cpp(322) : error C2794: 'type' : is not a member of any direct or indirect base class of 'std::tr1::enable_if<_Test,_Type>'
        with
        [
            _Test=false,
            _Type=bool
        ]
C:\dev\bug867112\src\zorbatypes\decimal.cpp(323) : error C2794: 'type' : is not a member of any direct or indirect base class of 'std::tr1::enable_if<_Test,_Type>'
        with
        [
            _Test=false,
            _Type=bool
        ]
C:\dev\bug867112\src\zorbatypes\decimal.cpp(323) : error C2794: 'type' : is not a member of any direct or indirect base class of 'std::tr1::enable_if<_Test,_Type>'
        with
        [
            _Test=false,
            _Type=bool
        ]
C:\dev\bug867112\src\zorbatypes\decimal.cpp(324) : error C2794: 'type' : is not a member of any direct or indirect base class of 'std::tr1::enable_if<_Test,_Type>'
        with
        [
            _Test=false,
            _Type=bool
        ]
C:\dev\bug867112\src\zorbatypes\decimal.cpp(324) : error C2794: 'type' : is not a member of any direct or indirect base class of 'std::tr1::enable_if<_Test,_Type>'
        with
        [
            _Test=false,
            _Type=bool
        ]
C:\dev\bug867112\src\zorbatypes\decimal.cpp(325) : error C2794: 'type' : is not a member of any direct or indirect base class of 'std::tr1::enable_if<_Test,_Type>'
        with
        [
            _Test=false,
            _Type=bool
        ]
C:\dev\bug867112\src\zorbatypes\decimal.cpp(325) : error C2794: 'type' : is not a member of any direct or indirect base class of 'std::tr1::enable_if<_Test,_Type>'
        with
        [
            _Test=false,
            _Type=bool
        ]

Related branches

description: updated
Changed in zorba:
status: New → Fix Committed
Changed in zorba:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.