Bonjour,
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 struct G { int nb; G(int b):nb(b){} bool operator()()const{} private: G(){} }; template<typename Q> struct F { typedef Q type; }; int main() { F<G()>::type fun; //OK F<G(3)>::type; //NOK fun(); //ne link pas std::cin.ignore(); return boost::exit_success; }
Quel est le type que je passe à F, est ce vraiment l'appel au constructeur de G ?
Merci
Partager