I have a variable boost::any*
items. My requirement is to:
assign items with list of values which can be of type int,double or any other datatype. But at a given time the data-type will be unique.
The issue:
For single values i can assign using items[index] = value; But if i do item = values; where values is a double array it cannot automatically cast. Also if i use
items = boost::any_cast<boost::any*>(values)
I receive 'boost::bad_any_cast': failed conversion using 'boost::any_cast`.
Some hints will be really great about how can i cast a double array to boost::any
array.