浏览代码

fix on some operations

making of shared pointers

cbor return of binaries
master
Ludovic 'Archivist' Lagouardette 3 年前
父节点
当前提交
d7d7720b07
共有 2 个文件被更改,包括 2 次插入2 次删除
  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 查看文件

@ -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 查看文件

@ -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);

正在加载...
取消
保存