
10 Dec
2008
10 Dec
'08
6:37 p.m.
I've made your problem simpler: #include <cstddef> template < typename T > void assign( T & assignee, const T & value ) {} int main( ) { int a; int const b = 0; assign(a, b); // works. int x[4]; int const y[4] = {}; assign (x,y); // ambiguous T. }