mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-12-01 21:19:16 -06:00
Replace gnc_make_option<SCM> with gnc_make_scm_option
To finesse SWIG_Guile's typedef unsigned long SCM, which causes SFINAE issues when trying to resolve the template.
This commit is contained in:
parent
e7309f077b
commit
c04f4a00e0
@ -517,6 +517,16 @@ GncOption::from_scheme(std::istream& iss)
|
|||||||
}, *m_option);
|
}, *m_option);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GncOption*
|
||||||
|
gnc_make_SCM_option(const char* section, const char* name,
|
||||||
|
const char* key, const char* doc_string,
|
||||||
|
SCM value, GncOptionUIType ui_type)
|
||||||
|
{
|
||||||
|
return new GncOption(section, name, key, doc_string,
|
||||||
|
reinterpret_cast<SCM>(value), ui_type);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* We must instantiate all of the templates we need here because we don't expose
|
/* We must instantiate all of the templates we need here because we don't expose
|
||||||
* the template implementation in the public header.
|
* the template implementation in the public header.
|
||||||
*/
|
*/
|
||||||
|
@ -150,4 +150,9 @@ gnc_make_option(const char* section, const char* name,
|
|||||||
return new GncOption(section, name, key, doc_string, value, ui_type);
|
return new GncOption(section, name, key, doc_string, value, ui_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* To work around SWIG_Guile's typedef of SCM to unsigned long: */
|
||||||
|
GncOption* gnc_make_SCM_option(const char* section, const char* name,
|
||||||
|
const char* key, const char* doc_string,
|
||||||
|
SCM value, GncOptionUIType ui_type);
|
||||||
|
|
||||||
#endif //GNC_OPTION_HPP_
|
#endif //GNC_OPTION_HPP_
|
||||||
|
Loading…
Reference in New Issue
Block a user