You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
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.
RM
unread,
Aug 28, 2020, 4:01:47 AM8/28/20
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Tzn. próbowałem opcji -std=c++11 albo -std=c++0x i nie pomogło, nadal błąd.
heby
unread,
Aug 28, 2020, 4:33:15 AM8/28/20
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
On 28/08/2020 09:31, RM wrote:
> src/common.hpp:70:14: error: ‘unordered_map’ in namespace ‘std’ does not
> name a template type
#include <unordered_map> masz?
RM
unread,
Aug 28, 2020, 5:49:28 AM8/28/20
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
W dniu 28.08.2020 o 10:33, heby pisze:
Dodałem typedef później i zapomniałem dopisać include. Dzięki!