Gopal

Gopal

  • 2k
  • 135
  • 9.8k

need help i created a map of unique_ptr std::map<std::unique_ptr<class

Mar 9 2021 10:45 AM
need help i created a map of unique_ptr std::map, std::unique_ptr> now while iterating for( auto& [key, val] : mymap) key is const std::unique_ptr and val is std::unique_ptr i don't know its the right way of doing this, i need key as non const ptr

Answers (8)