Article View: pl.comp.os.linux.programowanie
Article #72968unordered_map jako szablon
From: RM
Date: Fri, 28 Aug 2020 07:31
Date: Fri, 28 Aug 2020 07:31
14 lines
1327 bytes
1327 bytes
Uczę się C++. Nie rozumiem dlaczego mam błąd w poniższej definicji typu: typedef std::unordered_map<std::string /* found string in apostrophes */, std::string /* key in $GLOBALS */> strings_map; Oto ten błąd: src/common.hpp:70:14: error: ‘unordered_map’ in namespace ‘std’ does not name a template type typedef std::unordered_map<std::string /* found string in apostrophes */, std::string /* key in $GLOBALS */> strings_map; Przecież klasa std::unordered_map to szablon.
Technical Details
Message-ID:
<riabsc$31p5o$1@portraits.wsisiz.edu.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!wsisiz.edu.pl!.POSTED.user-5-173-129-80.play-internet.pl!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!wsisiz.edu.pl!.POSTED.user-5-173-129-80.play-internet.pl!not-for-mail From: RM <robert_magdziarz@wp.pl> Newsgroups: pl.comp.os.linux.programowanie Subject: unordered_map jako szablon Date: Fri, 28 Aug 2020 09:31:24 +0200 Organization: http://www.wit.edu.pl Message-ID: <riabsc$31p5o$1@portraits.wsisiz.edu.pl> Mime-Version: 1.0 Injection-Date: Fri, 28 Aug 2020 07:31:24 -0000 (UTC) Injection-Info: portraits.wsisiz.edu.pl; posting-host="user-5-173-129-80.play-internet.pl:5.173.129.80"; logging-data="3204280"; mail-complaints-to="abuse@wsisiz.edu.pl" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 X-Mozilla-News-Host: news://news.icp.pl:119 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit