// Copyright (c) 2019 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see . #pragma once #include #include #include #include namespace carla { /// Use this SharedPtr (boost::shared_ptr) to keep compatibility with /// boost::python, but it would be nice if in the future we can make a Python /// adaptor for std::shared_ptr. template using SharedPtr = boost::shared_ptr; template using WeakPtr = boost::weak_ptr; template using EnableSharedFromThis = boost::enable_shared_from_this; template static inline auto MakeShared(Args &&... args) { return boost::make_shared(std::forward(args)...); } } // namespace carla