Browse Source

MSVC 2013 compatibility: no rvalue references for *this.

Vladimír Vondruš 13 years ago
parent
commit
4c4dc8ae75
  1. 4
      src/Math/RectangularMatrix.h
  2. 4
      src/Math/Vector.h

4
src/Math/RectangularMatrix.h

@ -180,14 +180,14 @@ template<std::size_t cols, std::size_t rows, class T> class RectangularMatrix {
* @see operator[] * @see operator[]
*/ */
T* data() T* data()
#ifndef CORRADE_GCC47_COMPATIBILITY #if !defined(CORRADE_GCC47_COMPATIBILITY) && !defined(CORRADE_MSVC2013_COMPATIBILITY)
& &
#endif #endif
{ return _data[0].data(); } { return _data[0].data(); }
/** @overload */ /** @overload */
constexpr const T* data() constexpr const T* data()
#ifndef CORRADE_GCC47_COMPATIBILITY #if !defined(CORRADE_GCC47_COMPATIBILITY) && !defined(CORRADE_MSVC2013_COMPATIBILITY)
const & const &
#else #else
const const

4
src/Math/Vector.h

@ -195,14 +195,14 @@ template<std::size_t size, class T> class Vector {
* @see operator[]() * @see operator[]()
*/ */
T* data() T* data()
#ifndef CORRADE_GCC47_COMPATIBILITY #if !defined(CORRADE_GCC47_COMPATIBILITY) && !defined(CORRADE_MSVC2013_COMPATIBILITY)
& &
#endif #endif
{ return _data; } { return _data; }
/** @overload */ /** @overload */
constexpr const T* data() constexpr const T* data()
#ifndef CORRADE_GCC47_COMPATIBILITY #if !defined(CORRADE_GCC47_COMPATIBILITY) && !defined(CORRADE_MSVC2013_COMPATIBILITY)
const & const &
#else #else
const const

Loading…
Cancel
Save