Boost logo

Boost Users :

From: Olivier Tournaire (olitour_at_[hidden])
Date: 2008-02-20 18:30:53


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.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net