Here is my c++ Code's main function.
int main() {
vector<string> a;
any x;
x="Hello";
a.insert(a.begin(),any_cast<string>(x));
cout<<a[0]<<endl;
}
and this is giving me an error like this:
terminate called after throwing an instance of 'std::bad_any_cast'
what(): bad any_cast
Aborted (core dumped)