|
29 | 29 | #include "str.h"
|
30 | 30 | #include "ihash.h"
|
31 | 31 | #include "amisc.h"
|
| 32 | +#include "weak_template.h" |
32 | 33 |
|
33 | 34 | class parseargs {
|
34 | 35 |
|
@@ -262,13 +263,14 @@ class conftab {
|
262 | 263 | bool run (const str &file, u_int opts = 0, int fd = -1,
|
263 | 264 | status_t *sp = NULL);
|
264 | 265 |
|
265 |
| - template<class P, class D> |
266 |
| - conftab &add (const str &nm, P *dp, D lb, D ub) |
267 |
| - { return insert (New conftab_int<P> (nm, dp, lb, ub)); } |
| 266 | + template<typename T> |
| 267 | + conftab &add (const str &nm, T *dp, WEAK_TMPL(T) lb, WEAK_TMPL(T) ub) |
| 268 | + { return insert (New conftab_int<T> (nm, dp, lb, ub)); } |
268 | 269 |
|
269 |
| - template<class P, class D> |
270 |
| - conftab &add (const str &nm, P *dp, D lb, D ub, D def) |
271 |
| - { return insert (New conftab_int<P> (nm, dp, lb, ub, def)); } |
| 270 | + template<typename T> |
| 271 | + conftab &add (const str &nm, T *dp, |
| 272 | + WEAK_TMPL(T) lb, WEAK_TMPL(T) ub, WEAK_TMPL(T) def |
| 273 | + ) { return insert (New conftab_int<T> (nm, dp, lb, ub, def)); } |
272 | 274 |
|
273 | 275 | template<class A>
|
274 | 276 | conftab &add (const str &nm, A a)
|
|
0 commit comments