Skip to content

Commit 7ec7dbb

Browse files
committed
Remove unused Args template parameter
1 parent b1754db commit 7ec7dbb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/cpp2util.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,20 +337,20 @@ auto assert_in_bounds(auto&& x, auto&& arg CPP2_SOURCE_LOCATION_PARAM_WITH_DEFAU
337337
//-----------------------------------------------------------------------
338338
//
339339
struct {
340-
template<typename T, typename... Args>
340+
template<typename T>
341341
[[nodiscard]] auto cpp2_new(auto ...args) const -> std::unique_ptr<T> {
342342
return std::make_unique<T>(std::forward<decltype(args)>(args)...);
343343
}
344344
} unique;
345345

346346
struct {
347-
template<typename T, typename... Args>
347+
template<typename T>
348348
[[nodiscard]] auto cpp2_new(auto ...args) const -> std::shared_ptr<T> {
349349
return std::make_shared<T>(std::forward<decltype(args)>(args)...);
350350
}
351351
} shared;
352352

353-
template<typename T, typename... Args>
353+
template<typename T>
354354
[[nodiscard]] auto cpp2_new(auto ...args) -> std::unique_ptr<T> {
355355
return std::make_unique<T>(std::forward<decltype(args)>(args)...);
356356
}

0 commit comments

Comments
 (0)