This commit is contained in:
Baptiste Wicht 2014-03-04 22:48:14 +01:00
parent 69627d00a4
commit 59482b3466

View File

@ -187,11 +187,11 @@ public:
}
void reset(pointer_type p){
if(get() != pointer_type()){
get_deleter()(get());
}
auto tmp = get();
std::get<0>(_data) = p;
if(tmp){
get_deleter()(tmp);
}
}
};