Parcourir la source

fix on some operations

making of shared pointers

cbor return of binaries
master
Ludovic 'Archivist' Lagouardette il y a 3 ans
Parent
révision
d7d7720b07
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +1
    -1
      include/gp/ipc/envelope/cbor.hpp
  2. +1
    -1
      include/gp/utils/pointers.hpp

+ 1
- 1
include/gp/ipc/envelope/cbor.hpp Voir le fichier

@ -313,7 +313,7 @@ namespace gp {
for(auto it = new_state.begin(); it != end_it; it++) {
return_value.push_back(*it);
}
return {optional<gp::vector<char>>(gp::move(return_value)), parsing_state(new_state.begin() + size.value(), new_state.end())};
return {return_value, parsing_state(new_state.begin() + size.value(), new_state.end())};
break;
}
default: break;

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

@ -82,7 +82,7 @@ namespace gp {
shared_ptr(T* _data, gp::allocator& _owner)
: data(_data)
, refcounter((std::atomic_int*)owner.allocate(sizeof(std::atomic_int)))
, refcounter((std::atomic_int*)_owner.allocate(sizeof(std::atomic_int)))
, owner(_owner)
{
refcounter->store(1);

Chargement…
Annuler
Enregistrer