So that's what I have tried so far:
class menu_item
{
  private:
    // ....
    std::vector<std::string> options_;
    std::vector<std::string>::iterator current_;
  public:
    menu_item(std::string name, std::vector<std::string> options)
        : name_(name), options_(options)
    {
        current_ = begin(options_);
    }
    // ....
    const int curr_opt_id()
    {
        return current_ - begin(options_);
    }
};
But curr_opt_id() returns -24. Does anybody know what I am doing wrong here?
 
     
     
    