Just moving #include<string> above your IndexMap typedef fixes it.
Just moving #include above your IndexMap typedef fixes it.