summaryrefslogtreecommitdiff
path: root/include/command.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/command.h')
-rw-r--r--include/command.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/include/command.h b/include/command.h
index 6a3e8b4..715902d 100644
--- a/include/command.h
+++ b/include/command.h
@@ -7,19 +7,16 @@
namespace nitrokey {
namespace proto {
-template <CommandID cmd_id>
+template <CommandID cmd_id>
class Command : semantics::non_constructible {
-public:
- constexpr static CommandID command_id() {
- return cmd_id;
- }
+ public:
+ constexpr static CommandID command_id() { return cmd_id; }
- template<typename T>
- static std::string dissect(const T &) {
- return std::string("Payload dissection is unavailable");
- }
+ template <typename T>
+ static std::string dissect(const T &) {
+ return std::string("Payload dissection is unavailable");
+ }
};
-
}
}