Associative Arrays

Status
Not open for further replies.

AdmiralCrunch

Well-known member
hi

I need to have a multidimensional associative Array. For first I am trying a one dimensinal one:

Code:
#include <map>

std::map<String, int> bla = { 
  {"bla", 2},
  {"nextblah", 3}
  }

but I get this error:

e:\arduino\hardware\tools\arm\arm-none-eabi\include\c++\5.4.1\bits/stl_tree.h:220: undefined reference to `std::_Rb_tree_decrement(std::_Rb_tree_node_base*)'

what does that mean? oO
 
As a (technically) conservative old fart, I'd rather opted for a struct instead of a class. But in the meantime, structs have become classes, so everything is fine! :)
 
Status
Not open for further replies.
Back
Top