mercredi 27 juin 2018

What are the disadvantages of define a field (in class) as a reference?

What are the disadvantages of define a field (in class) as a reference?
For example:

template <typename T>
Class A {  
    T& x; 
public:  
    //....
}

In addition, exists special things that I need to do while I define a field as reference?

Aucun commentaire:

Enregistrer un commentaire