/*
 * SPDX-FileCopyrightText: 2025 Copyright contributors to the cppTango project
 *
 * SPDX-License-Identifier: LGPL-3.0-or-later
 */
#ifndef TANGO_INTERNAL_TELEMETRY_STDUNIQUETONOSTDSHARED_H
#define TANGO_INTERNAL_TELEMETRY_STDUNIQUETONOSTDSHARED_H

#include <opentelemetry/nostd/shared_ptr.h>
#include <opentelemetry/nostd/variant.h>

namespace
{
template <typename T>
opentelemetry::nostd::shared_ptr<T> StdUniqueToNostdShared(std::unique_ptr<T> &&other)
{
    return opentelemetry::nostd::shared_ptr<T>{std::shared_ptr<T>{other.release()}};
}
} //  anonymous namespace

#endif // TANGO_INTERNAL_TELEMETRY_STDUNIQUETONOSTDSHARED_H
