mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Allow building with c++20 and greater/
This commit is contained in:
parent
9f998892b5
commit
5132476a2f
@ -396,13 +396,13 @@ template <typename ValueType>
|
|||||||
class GncOptionRangeValue : public OptionClassifier
|
class GncOptionRangeValue : public OptionClassifier
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
GncOptionRangeValue<ValueType>(const char* section, const char* name,
|
GncOptionRangeValue(const char* section, const char* name,
|
||||||
const char* key, const char* doc_string,
|
const char* key, const char* doc_string,
|
||||||
ValueType value, ValueType min,
|
ValueType value, ValueType min,
|
||||||
ValueType max, ValueType step) :
|
ValueType max, ValueType step) :
|
||||||
GncOptionRangeValue<ValueType>{section, name, key, doc_string, value, min,
|
GncOptionRangeValue<ValueType>{section, name, key, doc_string, value, min,
|
||||||
max, step, GncOptionUIType::NUMBER_RANGE} {}
|
max, step, GncOptionUIType::NUMBER_RANGE} {}
|
||||||
GncOptionRangeValue<ValueType>(const char* section, const char* name,
|
GncOptionRangeValue(const char* section, const char* name,
|
||||||
const char* key, const char* doc_string,
|
const char* key, const char* doc_string,
|
||||||
ValueType value, ValueType min,
|
ValueType value, ValueType min,
|
||||||
ValueType max, ValueType step, GncOptionUIType ui) :
|
ValueType max, ValueType step, GncOptionUIType ui) :
|
||||||
@ -412,8 +412,8 @@ public:
|
|||||||
m_min{min}, m_max{max}, m_step{step} {
|
m_min{min}, m_max{max}, m_step{step} {
|
||||||
if constexpr(is_same_decayed_v<ValueType, int>)
|
if constexpr(is_same_decayed_v<ValueType, int>)
|
||||||
set_alternate(true);}
|
set_alternate(true);}
|
||||||
GncOptionRangeValue<ValueType>(const GncOptionRangeValue<ValueType>&) = default;
|
GncOptionRangeValue(const GncOptionRangeValue<ValueType>&) = default;
|
||||||
GncOptionRangeValue<ValueType>(GncOptionRangeValue<ValueType>&&) = default;
|
GncOptionRangeValue(GncOptionRangeValue<ValueType>&&) = default;
|
||||||
GncOptionRangeValue<ValueType>& operator=(const GncOptionRangeValue<ValueType>&) = default;
|
GncOptionRangeValue<ValueType>& operator=(const GncOptionRangeValue<ValueType>&) = default;
|
||||||
GncOptionRangeValue<ValueType>& operator=(GncOptionRangeValue<ValueType>&&) = default;
|
GncOptionRangeValue<ValueType>& operator=(GncOptionRangeValue<ValueType>&&) = default;
|
||||||
ValueType get_value() const { return m_value; }
|
ValueType get_value() const { return m_value; }
|
||||||
|
Loading…
Reference in New Issue
Block a user