C++ error: 'unordered_map' does not name a type

前端 未结 3 894
感动是毒
感动是毒 2021-01-08 00:41

I am doing everything correctly as far as I can tell and I have gotten the error message:

error: \'unordered_map\' does not name a type
error: \'mymap\' does         


        
3条回答
  •  借酒劲吻你
    2021-01-08 01:08

    If you want to support for versions older than c++11 use
    #include and declare your maps in the form :- std::tr1::unordered_map mymap
    which will use the technical report 1 extension for backward compatibility.

提交回复
热议问题