c++ - [bug] Failure to prefer more-specific (non-template) function
- "Matthew" <matthew hat.stlsoft.dot.org> Dec 04 2006
- "Matthew" <matthew hat.stlsoft.dot.org> Dec 04 2006
The most specific (non-template) form of get_int() (defined on line 122) should be matched when instantiating f() for line 168. Cheers Matthew
Dec 04 2006
"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.
Dec 04 2006








"Matthew" <matthew hat.stlsoft.dot.org>