25 Jun
2006
25 Jun
'06
1:35 p.m.
I have started using Boost recently, and though I should switch my own
variant to the Boost Variant . However I cannot compile the following code
#include<iostream>
#include<vector>
#include<string>
#include BoostVariant; };
typedef TpTemplateVariant::BoostVariant Tpvariant;
int main () {
Tpvariant p(5);
std::cout << p;
return 0;
}
The error I get is
error C2679: binary '<<' : no operator found which takes a right-hand
operand of type 'const T5'