Oh those compiler differences.
This commit is contained in:
parent
bfce6dba9b
commit
4628308415
1 changed files with 2 additions and 2 deletions
|
@ -1009,8 +1009,8 @@ public:
|
|||
TYPE* option(const t_config_option_key &opt_key, bool create = false)
|
||||
{
|
||||
ConfigOption *opt = this->optptr(opt_key, create);
|
||||
assert(opt == nullptr || opt->type() == typename TYPE::static_type());
|
||||
return (opt == nullptr || opt->type() != typename TYPE::static_type()) ? nullptr : static_cast<TYPE*>(opt);
|
||||
assert(opt == nullptr || opt->type() == TYPE::static_type());
|
||||
return (opt == nullptr || opt->type() != TYPE::static_type()) ? nullptr : static_cast<TYPE*>(opt);
|
||||
}
|
||||
template<typename TYPE>
|
||||
const TYPE* option(const t_config_option_key &opt_key) const
|
||||
|
|
Loading…
Reference in a new issue