123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- ////////////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////////////
- for ( listtype::iterator iter = (list)->begin(); iter != (list)->end(); ++iter )
- #define forEachAs( listtype, list, iter ) \
- for ( listtype::iterator iter = (list)->begin(); iter != (list)->end(); ++iter )
- #define const_forEach( listtype, list ) \
- for ( listtype::const_iterator iter = (list)->begin(); iter != (list)->end(); ++iter )
- #define const_forEachAs( listtype, list, iter ) \
- for ( listtype::const_iterator iter = (list)->begin(); iter != (list)->end(); ++iter )
- #define forEachR( listtype, list ) \
- for ( listtype::reverse_iterator iter = (list)->rbegin(); iter != (list)->rend(); ++iter )
- #define const_forEachR( listtype, list ) \
- for ( listtype::const_reverse_iterator iter = (list)->rbegin(); iter != (list)->rend(); ++iter )
- ////////////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////////////
- /**
- * Disable annoying compiler warnings
- */
- #if defined(__INTEL) || defined(_MSC_VER)
- // Disable the warning: 'identifier' : class 'type' needs to have dll-interface to be used by clients of class 'type2'
- #pragma warning(disable:4251)
- #endif
- #ifdef __INTEL_COMPILER
- // Disable the warning: conditional expression is constant
- #pragma warning(disable:4127)
- // Disable the warning: 'identifier' : unreferenced formal parameter
- #pragma warning(disable:4100)
- // remark #383: value copied to temporary, reference to temporary used
- #pragma warning(disable:383)
- // remark #981: operands are evaluated in unspecified order
- // disabled -> completely pointless if the functions do not have side effects
- // remark
- // remark
- // disabled -> everyone knows it, the parser passes this problem deliberately to the user
- // remark
|