ciao , leggendo un libro sul c++ in particolare un capitolo sui template ho letto questo "weak typing" riporto parte del capitolo(il libro è thinking in c++ cap16)che non ho capito completamente ,ancora un po' arranco con l'inglese:
Notice that a template makes certain assumptions about the objects
it is holding. For example, StackTemplate assumes there is some
sort of assignment operation for T inside the push( ) function. You
could say that a template “implies an interface” for the types it is
capable of holding.
Another way to say this is that templates provide a kind of weak
typing mechanism for C++,

Rispondi quotando