debugger icon indicating copy to clipboard operation
debugger copied to clipboard

C++20 future improvement

Open pvmm opened this issue 3 years ago • 0 comments

I was going to suggest to replace this loop with a call to std::erase_if(m, [](auto& entry) { return entry->index == -1; }); But this doesn't work (yet) because:

  • std::erase_if() is only available in c++20
  • it works on STL containers, but not on QMap. Any reason why you've chosen QMap instead of std::map?

So no need to change anything (yet).

Originally posted by @m9710797 in https://github.com/openMSX/debugger/pull/104#discussion_r838614870

pvmm avatar Mar 30 '22 21:03 pvmm