Browse Source

Amazing, now I get swap() conflicts from the other side, F.F.S.

This one is because ResourceKey is derived from a HashDigest class in
Corrade::Utility, where the new swap() implementation is. C++!!!
pull/168/head
Vladimír Vondruš 3 years ago
parent
commit
3784ca94cf
  1. 2
      src/Magnum/Resource.h

2
src/Magnum/Resource.h

@ -271,7 +271,7 @@ template<class T, class U> Resource<T, U>::Resource(Resource<T, U>&& other) noex
} }
template<class T, class U> Resource<T, U>& Resource<T, U>::operator=(Resource<T, U>&& other) noexcept { template<class T, class U> Resource<T, U>& Resource<T, U>::operator=(Resource<T, U>&& other) noexcept {
using std::swap; using Utility::swap;
swap(_manager, other._manager); swap(_manager, other._manager);
swap(_key, other._key); swap(_key, other._key);
swap(_lastCheck, other._lastCheck); swap(_lastCheck, other._lastCheck);

Loading…
Cancel
Save