Removed unnecessary const qualifiers in template

This commit is contained in:
2019-07-28 14:00:46 +02:00
parent 29b4d85ce3
commit 2bbba0fcbd
3 changed files with 7 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ enum class Parity {
namespace detail {
template <const DataBits dataBits>
template <DataBits dataBits>
struct choose_data_type {
using type = uint8_t;
};
@@ -35,8 +35,8 @@ struct choose_data_type<DataBits::NINE> {
} // namespace detail
template <const uint32_t baudRate = 9600, const DataBits dataBits = DataBits::EIGHT, const Parity parity = Parity::NONE,
const StopBits stopBits = StopBits::ONE>
template <uint32_t baudRate = 9600, DataBits dataBits = DataBits::EIGHT, Parity parity = Parity::NONE,
StopBits stopBits = StopBits::ONE>
struct config {
static constexpr auto BAUD_RATE = baudRate;
static constexpr auto DATA_BITS = dataBits;