Skip to content
Snippets Groups Projects
Commit d8913efd authored by laurent soulier's avatar laurent soulier
Browse files

[MAJ][TBV] replacing unique_tr by shared_ptr for Tensor implementation pointer

parent 5c09fe30
Branches feat/TensorCopy
No related tags found
No related merge requests found
......@@ -38,19 +38,7 @@ namespace detail
{
namespace pimpl
{
/// @brief actual implementation of the deleter
/// @internal
void DeleteImpl(TensorImpl *pImpl) noexcept;
/// @brief Implementation deleter
/// @internal
struct SImplDeleter
{
void operator()(TensorImpl *pImpl) const noexcept
{
DeleteImpl(pImpl);
}
};
using ImplPtr_t = std::unique_ptr<TensorImpl, SImplDeleter>;
using ImplPtr_t = std::shared_ptr<TensorImpl>;
} // namespace pimpl
/// @brief Check if a valid area is included in another one.
......
......@@ -14,12 +14,6 @@
namespace Aidge
{
/// @brief actual implementation of the deleter
void detail::pimpl::DeleteImpl(TensorImpl *pImpl) noexcept
{
delete pImpl;
}
/// @brief Check if a valid area is included in another one.
bool detail::IsSubTensorIncluded(
std::vector<Coord_t> const &i_SubFirstDataLogicalCoordinates,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment