From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ruslan Shevchenko To: egcs@cygnus.com Cc: egcs@cygnus.com Subject: [Q] about template specialization Date: Sat, 25 Apr 1998 11:59:00 -0000 Message-id: <354231E5.F2165C14@Shevchenko.Kiev.UA> X-SW-Source: 1998-04/msg01016.html look at the next code: template inline const K& default_key(const E&); template inline const T& default_key(const T& x) { return x; } than, in template class X { ........ virtual const K& get_key(const E& x) { return default_key(x); } }; than, lets look on class X I think that X::get_key must call specialization (i. e. second definition) Actually, in egcs it is wrong. So, what standart behavior ? Thanks. -- @= //RSSH mailto:Ruslan@Shevchenko.Kiev.UA