#6 Error of compilation - VC8

current_series
closed-fixed
nobody
3
2007-03-05
2007-03-04
Sebastian Nibisz
No

gc.hpp(1330) :
error C2906: 'std::less<gc::detail::pointer_base>' : explicit specialization requires 'template <>'

- Bastek -

Discussion

  • Logged In: YES
    user_id=1260797
    Originator: NO

    This is because there is a bug in the definition of _SMGC_POOR_TEMPLATES.

    In two occrences, the define _MSVC is used to detect the version of MSVC++, but it is not actually defined by the compiler ! Instead, the define _MSC_VER should be used.

    gc.hpp(49)
    #if defined(_MSC_VER) && (_MSVC <= 1200)

    gcpp.cpp(985)
    #if (defined(_MSC_VER) && (_MSVC <= 1200)) || defined(_SMGC_POOR_STL)

    If you replace _MSVC by _MSC_VER, everything goes fine.

     
  • Logged In: YES
    user_id=759310
    Originator: NO

    Yes, good spot. Fixed for next (pre)release

     
    • priority: 5 --> 3
    • status: open --> closed-fixed