get rid of utils::boundsbig() by making it a template function with two specializations

This commit is contained in:
Axel Kohlmeyer
2020-08-31 11:25:43 -04:00
parent 8d2c16ad66
commit cf11945e21
4 changed files with 10 additions and 35 deletions

View File

@ -359,8 +359,9 @@ tagint utils::tnumeric(const char *file, int line, const char *str,
/* ----------------------------------------------------------------------
compute bounds implied by numeric str with a possible wildcard asterisk
------------------------------------------------------------------------- */
template<>
void utils::bounds(const char *file, int line, char *str,
int nmin, int nmax, int &nlo, int &nhi, Error *error)
bigint nmin, bigint nmax, int &nlo, int &nhi, Error *error)
{
char *ptr = strchr(str,'*');
@ -398,9 +399,10 @@ void utils::bounds(const char *file, int line, char *str,
/* ----------------------------------------------------------------------
compute bounds implied by numeric str with a possible wildcard asterisk
------------------------------------------------------------------------- */
void utils::boundsbig(const char *file, int line, char *str,
bigint nmin, bigint nmax, bigint &nlo, bigint &nhi,
Error *error)
template <>
void utils::bounds(const char *file, int line, char *str,
bigint nmin, bigint nmax, bigint &nlo, bigint &nhi,
Error *error)
{
char *ptr = strchr(str,'*');