diff --git a/src/xtd.core/include/xtd/new_ptr.h b/src/xtd.core/include/xtd/new_ptr.h index 316a6b46cb7..313edf94b47 100644 --- a/src/xtd.core/include/xtd/new_ptr.h +++ b/src/xtd.core/include/xtd/new_ptr.h @@ -3,7 +3,6 @@ /// @copyright Copyright (c) 2024 Gammasoft. All rights reserved. #pragma once #include "ptr.h" -#include /// @brief The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more. namespace xtd { @@ -21,8 +20,8 @@ namespace xtd { /// @endcode /// @remarks The xtd::new_ptr is equivalent to [std::make_shared](https://en.cppreference.com/w/cpp/memory/shared_ptr/make_shared). template - ptr new_ptr(args_t&& ... args) {return ptr {new type_t(std::forward(args)...)};} - + ptr new_ptr(args_t&& ... args) {return ptr {new type_t(args...)};} + /// @cond template ptr new_ptr(const type_t& arg) {return ptr {new type_t(arg)};} diff --git a/src/xtd.core/include/xtd/new_uptr.h b/src/xtd.core/include/xtd/new_uptr.h index 7afd8d504cb..5df57175048 100644 --- a/src/xtd.core/include/xtd/new_uptr.h +++ b/src/xtd.core/include/xtd/new_uptr.h @@ -3,7 +3,6 @@ /// @copyright Copyright (c) 2024 Gammasoft. All rights reserved. #pragma once #include "uptr.h" -#include /// @brief The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more. namespace xtd { @@ -21,8 +20,8 @@ namespace xtd { /// @endcode /// @remarks The xtd::new_uptr is equivalent to [std::make_unique](https://en.cppreference.com/w/cpp/memory/xtd::uptr/make_unique). template - uptr new_uptr(args_t&& ... args) {return uptr {new type_t(std::forward(args)...)};} - + uptr new_uptr(args_t&& ... args) {return uptr {new type_t(args...)};} + /// @cond template uptr new_uptr(const type_t& arg) {return uptr {new type_t(arg)};}