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


begin 666 test.dm.zip



M+P -XW*-85:PN."';/6\W,R%],4:1X1BJ>+[K1\L[^_N?MPLE\']M_OES4?S

M\!4L+T,&7"! SQFN%K?50XQP W) ^4_/_36M5G?35[(T?5O4:4M6<X:3+$:,
M Z_2-(8/\Y;*1Q27.&!I(!WI5X]IF<"V. K7X.R!20-<AN>H]DRO=;QH2(XR
MS*[FQS"N#F

MJ[(8E,L//*L552B/+E02)Y"5JYB$\H QJ/Y,JKTTPSEB:0Z$,M."D*MEG4#E
MF)4YA2OMN8X2EX'?^$_D6GAN%^>]&HU!7T5X/.>$QJ*Y*\4!?P8/IN]5^F'(


MJ*2AJ&S!/-9W:3+1%U X<3 -\_?8\75H]ZRIWM-$3 30'&41M?3YH?PBN.:_
MH8IRW3 .?40(<1WRDQR(&CC6L.B>5(O5V*_['8>:3R:Z;ZD77XUY6GAX$I2 

M>.)-5/-'9G4?U=QMYL1KO-QK1.?U27KQ`E!+`0(4`!0````(`%./A34 -%H=
MP (``",+```+``````````$`( "V 0````!T97-T+F1M+F-P<%!+!08`````
.`0`!`#D```#I` ``````
`
end
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