From 2bbba0fcbd6879fa6ca941cfec19dd2dcc9afd9e Mon Sep 17 00:00:00 2001 From: BlackMark Date: Sun, 28 Jul 2019 14:00:46 +0200 Subject: [PATCH] Removed unnecessary const qualifiers in template --- config.hpp | 6 +++--- hardware0.hpp | 2 +- software.hpp | 4 +++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/config.hpp b/config.hpp index e7f2179..860687d 100644 --- a/config.hpp +++ b/config.hpp @@ -23,7 +23,7 @@ enum class Parity { namespace detail { -template +template struct choose_data_type { using type = uint8_t; }; @@ -35,8 +35,8 @@ struct choose_data_type { } // namespace detail -template +template struct config { static constexpr auto BAUD_RATE = baudRate; static constexpr auto DATA_BITS = dataBits; diff --git a/hardware0.hpp b/hardware0.hpp index 84ed2b3..16e6fff 100644 --- a/hardware0.hpp +++ b/hardware0.hpp @@ -12,7 +12,7 @@ enum class Mode { SPI, }; -template +template class hardware0 { public: using data_t = typename config::data_t; diff --git a/software.hpp b/software.hpp index adef1d5..812eca8 100644 --- a/software.hpp +++ b/software.hpp @@ -1,10 +1,12 @@ #pragma once +#include "config.hpp" + #include "../io/io.hpp" namespace uart { -template +template > class software { public: using data_t = typename config::data_t;