Skip to content

Commit

Permalink
make CommandPtr ctor implicit
Browse files Browse the repository at this point in the history
  • Loading branch information
Starlight220 committed Dec 24, 2023
1 parent 34f0a97 commit 727e070
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
#include <utility>
#include <vector>

#include <wpi/DecayedDerivedFrom.h>

#include "frc2/command/Command.h"
#include "frc2/command/Requirements.h"

Expand All @@ -32,7 +34,7 @@ class CommandPtr final {

template <std::derived_from<Command> T>
// NOLINTNEXTLINE(bugprone-forwarding-reference-overload)
explicit CommandPtr(T&& command)
/*implicit*/ CommandPtr(T&& command)
: CommandPtr(
std::make_unique<std::decay_t<T>>(std::forward<T>(command))) {}

Expand Down

0 comments on commit 727e070

Please sign in to comment.