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[]
*/
T* data()
#ifndef CORRADE_GCC47_COMPATIBILITY
#if !defined(CORRADE_GCC47_COMPATIBILITY) && !defined(CORRADE_MSVC2013_COMPATIBILITY)
&
#endif
{ return _data[0].data(); }
/** @overload */
constexpr const T* data()
#ifndef CORRADE_GCC47_COMPATIBILITY
#if !defined(CORRADE_GCC47_COMPATIBILITY) && !defined(CORRADE_MSVC2013_COMPATIBILITY)
const &
#else
const

4
src/Math/Vector.h

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

Loading…
Cancel
Save