Bonjour, alors j'ai un petit problème avec un boost::any qui ne veut pas compiler tant qu'il est dans un union, je m'explique:
Compile sans problème.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 struct{ boost::any any; bool _bool; char _char; }val;
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 union{ boost::any any; bool _bool; char _char; }val;Que faut il faire pour utiliser un boost::any dans une union svp?error: member 'boost::any main()::<anonymous union>::any' with constructor not allowed in union
error: member 'boost::any main()::<anonymous union>::any' with destructor not allowed in union
error: member 'boost::any main()::<anonymous union>::any' with copy assignment operator not allowed in union
Partager