Parcourir la source

Pointers fix

channel
Ludovic 'Archivist' Lagouardette il y a 4 ans
Parent
révision
edf2075b1e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      include/gp/utils/pointers.hpp

+ 1
- 1
include/gp/utils/pointers.hpp Voir le fichier

@ -36,7 +36,7 @@ namespace gp {
unique_ptr<U> cast() { unique_ptr<U> cast() {
auto save = data; auto save = data;
data = nullptr; data = nullptr;
return unique_ptr<U>(safe, owner);
return unique_ptr<U>(save, owner);
} }
T* operator->() { T* operator->() {

Chargement…
Annuler
Enregistrer