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*

8
  • Thanks for your answer. Unfortunately it gives me the same compiler error as I commented on Ignaio's answer below. I believe it has something to do with these being member functions and variables of a class, in a seperate cpp/h file. However I can't find how I should initialize PendingRecord correctly so it compiles... Commented Jul 22, 2015 at 20:45
  • Can you post the exact error message please? My code doesn't have SimulatorClass in it, so that cannot be in the error. I tested my code, I didn't just write it without trying. it gives me the same compiler error - I would like you to try my exact code. If it does not give a compiler error, then the problem is elsewhere. Commented Jul 22, 2015 at 20:58
  • Nick your code works fine off course, but due to the nature of my project I have to adapt it into my existing codebase. I committed my attempt at integrating your solution to Github, you can find it here: github.com/vyruz1986/FlyballSensor/tree/develop. It would be great if you could modify your answer with information on how to use your solution inside a class. Commented Jul 22, 2015 at 21:47
  • Can you modify your question to add a minimal example of what you are doing? There's a lot of code on your Github site. A Minimal, Complete, and Verifiable example would be great. Commented Jul 22, 2015 at 21:51
  • 1
    "whatever "constexpr" is" constexpr is a very useful feature of C++11. Commented Jun 12, 2017 at 8:34