[variant] Compilation problem

Hi all, I am trying to use boost::variant. First of all, I tried to compile and run the example from the documentation (http://www.boost.org/doc/html/variant.html). However, I am having a compilation error. Here it is : C:\Boost\include\boost-1_35\boost\variant\detail\variant_io.hpp(64) : error C2679: '<<' binaire : aucun opérateur trouvé qui accepte un opérande de partie droite de type 'const T1' (ou il n'existe pas de conversion acceptable) --> error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'type' (or there is no acceptable conversion) No '<<' operator for std::string ? Where is my mistake ? Best regards, Olivier -- Le temps des cerises reviendra. Dans l'immédiat, c'est le temps des noyaux. Courage.
participants (1)
-
Olivier Tournaire