Dear Friend
due to hurry I did sent proper error message so pls have look now.
my program is
typedef std::vector<std::string> vec_name;
struct network
{
boost::variant<vec_name> net_id;
};
typedef std::vector<network>network_list;
// create the instance for vector
network_list net_list;
for(int i=0; i<net_list.size(); ++i)
{
unsigned char* query_str = net_list[0].net_id;
}
ERROR is
error: cannot convert ‘boost::variant<std::vector<std::basic_string<char>
> >’ to ‘unsigned char*’ in assignment