I have std::unordered_map<char, Argument&> and it works fine, but when I try to declare std::stack<Argument&>, I'm getting the following error:
In template: 'allocate' declared as a pointer to a reference of type 'ArgumentParser::ArgParser::Argument &'
reference_wrappercan be re-bound!std::shared_ptr<Argument>? Perhaps it can be solved some other way? Always please ask about the underlying and actual problem directly, and then tell us the solution you have in mind, and we can tell you if it's feasible or not, and possibly give you other and maybe better solutions.std::unordered_mapare of typestd::pair<char, Argument&>, which is not a reference type.