Browse Source

Removed deprecated Resource conversion operator.

Use explicit conversion instead.
pull/107/head
Vladimír Vondruš 11 years ago
parent
commit
b268829993
  1. 14
      src/Magnum/Resource.h

14
src/Magnum/Resource.h

@ -35,10 +35,6 @@
#include "Magnum/Magnum.h"
#include "Magnum/visibility.h"
#ifdef MAGNUM_BUILD_DEPRECATED
#include <Corrade/Utility/Macros.h>
#endif
namespace Magnum {
/**
@ -205,16 +201,6 @@ class Resource {
return *static_cast<U*>(data);
}
#ifdef MAGNUM_BUILD_DEPRECATED
/**
* @overload
* @deprecated Use the explicit @ref operator*() or @ref operator->()
* instead. Implicit conversion is no longer allowed if it might
* throw an assertion.
*/
CORRADE_DEPRECATED("use operator*() or operator->() instead") operator U&() { return **this; }
#endif
/**
* @brief Access to resource data
*

Loading…
Cancel
Save