Browse Source

GCC 4.6 compatibility: conflicting template and parameter names.

Vladimír Vondruš 11 years ago
parent
commit
5bd3f7b58f
  1. 6
      src/Magnum/Buffer.h

6
src/Magnum/Buffer.h

@ -840,9 +840,15 @@ class MAGNUM_EXPORT Buffer: public AbstractObject {
}
/** @overload */
#ifdef CORRADE_GCC46_COMPATIBILITY
#define size size_ /* With GCC 4.6 it conflicts with size(). WTF. */
#endif
template<std::size_t size> Buffer& setLabel(const char(&label)[size]) {
return setLabelInternal({label, size - 1});
}
#ifdef CORRADE_GCC46_COMPATIBILITY
#undef size
#endif
/** @brief Target hint */
TargetHint targetHint() const { return _targetHint; }

Loading…
Cancel
Save