December 05, 2006 [bug] Failure to prefer more-specific (non-template) function | ||||
---|---|---|---|---|
| ||||
Attachments: | The most specific (non-template) form of get_int() (defined on line 122) should be matched when instantiating f() for line 168. Cheers Matthew |
December 05, 2006 Re: [bug] Failure to prefer more-specific (non-template) function | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew | "Matthew" <matthew@hat.stlsoft.dot.org> wrote in message news:el35g3$1eb$1@digitaldaemon.com... > The most specific (non-template) form of get_int() (defined on line 122) > should be matched when instantiating f() for line 168. FYI: There's a workaround: #if defined(__DMC__) inline int get_int(int const &i) { return i; } #else /* ? compiler */ inline int get_int(int i) { return i; } #endif /* compiler */ But this is not good enough for the actual code I'm using this technique for. |
Copyright © 1999-2021 by the D Language Foundation