Click here to Skip to main content
15,903,175 members

Comments by ucarcamagnu (Top 1 by date)

ucarcamagnu 12-Jun-15 8:06am View    
Thank you, I suspected exactly what you said because I heard about compiler generating "concrete" code out of templates, but need a confirmation.
I never thought about this being a great way to decouple classes, am I wrong?

struct Unknown; // no need to be template

template<typename t=""> struct S{ // no need to #include anything related to Unknown
void useUnknown(Unknown& u){
u.doStuff(); // just betting Unknown::doStuff exists, otherwise compile error
}
};