title: Role based access control C++ library or example
body: <p>I am writing an application and I want to restrict access to certain behaviours/actions based on a users role.</p>
  
  <p>I have searched online for a C++ library that implements this - or at least a guideline on how to "roll my own" - to no avail. Is anyone aware of such a library?. If no, I would be grateful for some ideas on how best to implement such a library/framework.</p>