Browse Source

Pointers fix

channel
Ludovic 'Archivist' Lagouardette 3 years ago
parent
commit
edf2075b1e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      include/gp/utils/pointers.hpp

+ 1
- 1
include/gp/utils/pointers.hpp View File

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

Loading…
Cancel
Save