Codechange: make TimerGameCalendar Date and Year types strongly typed (#10761)
This commit is contained in:
@@ -153,6 +153,12 @@ public:
|
||||
this->parameters[n].string_view = nullptr;
|
||||
}
|
||||
|
||||
template <typename T, std::enable_if_t<std::is_base_of<StrongTypedefBase, T>::value, int> = 0>
|
||||
void SetParam(size_t n, T v)
|
||||
{
|
||||
SetParam(n, static_cast<typename T::BaseType>(v));
|
||||
}
|
||||
|
||||
void SetParam(size_t n, const char *str)
|
||||
{
|
||||
assert(n < this->parameters.size());
|
||||
|
Reference in New Issue
Block a user