www.digitalmars.com         C & C++   DMDScript  

c++ - [bug] Failure to prefer more-specific (non-template) function

reply "Matthew" <matthew hat.stlsoft.dot.org> writes:
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
parent "Matthew" <matthew hat.stlsoft.dot.org> writes:
"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