Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • This sounds like a good solution but I'm wirting the code for an arduino and I get the following error: expected constructor, destructor, or type conversion before '<' token. Commented Jul 13, 2013 at 1:24
  • This solution is also a coorect suggestion. Arduino doesn't support std::array and std::vector. I marked the pointer solution as the right one because it's a good solution and it works for me. Anyway, using std::array might be a better soloution in some other cases. I will vote +1 as soon as my reputation allows it. Commented Jul 13, 2013 at 13:54