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
No related branches found
No related tags found
2 merge requests!41Support for any backend storage,!13Refactoring Tensor
Pipeline #33043 passed
...@@ -38,19 +38,7 @@ namespace detail ...@@ -38,19 +38,7 @@ namespace detail
{ {
namespace pimpl namespace pimpl
{ {
/// @brief actual implementation of the deleter using ImplPtr_t = std::shared_ptr<TensorImpl>;
/// @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>;
} // namespace pimpl } // namespace pimpl
/// @brief Check if a valid area is included in another one. /// @brief Check if a valid area is included in another one.
......
...@@ -14,12 +14,6 @@ ...@@ -14,12 +14,6 @@
namespace Aidge 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. /// @brief Check if a valid area is included in another one.
bool detail::IsSubTensorIncluded( bool detail::IsSubTensorIncluded(
std::vector<Coord_t> const &i_SubFirstDataLogicalCoordinates, 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