Class std::map has no member named contains #1

Closed
opened 2022-09-04 08:08:21 +00:00 by DebXWoody · 0 comments

contains has been added in C++20?

src/gtkgemini.cpp: In member function ‘void GtkGemini::display_capsule(std::string, std::shared_ptr<Capsule>)’:
src/gtkgemini.cpp:141:21: error: ‘class std::map<std::__cxx11::basic_string<char>, std::shared_ptr<Capsule> >’ has no member named ‘contains’
  141 |         if (!tabMap.contains(name)) {
      |                     ^~~~~~~~
make: *** [Makefile:562: src/gtkgemini.o] Fehler 1
contains has been added in C++20? ``` src/gtkgemini.cpp: In member function ‘void GtkGemini::display_capsule(std::string, std::shared_ptr<Capsule>)’: src/gtkgemini.cpp:141:21: error: ‘class std::map<std::__cxx11::basic_string<char>, std::shared_ptr<Capsule> >’ has no member named ‘contains’ 141 | if (!tabMap.contains(name)) { | ^~~~~~~~ make: *** [Makefile:562: src/gtkgemini.o] Fehler 1 ```
DebXWoody added the
Kind: Bug
Priority: Critical
labels 2022-09-04 08:08:22 +00:00
DebXWoody self-assigned this 2022-09-04 08:08:22 +00:00
Sign in to join this conversation.
There is no content yet.