Removed unnecessary const qualifiers in template
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user