www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

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

↑ ↓ ← "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
↑ ↓ → "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