title: How to use C#-like attributes in C++
body: <p>I'm considering the use of C++ for a personal project. I would like to make it platform independent (no Mono please, since some platforms don't yet support it), and that's why I considered C++.</p>
  
  <p>I have one doubt, however. I've grown quite fond of C#'s attributes, and I would like to know if I can use something similar in C++.</p>
  
  <p>Also, is it possible to use the decorator pattern for this?</p>
  
  <p>EDIT: I would now consider other possibilities or approximations for this matter, ie. some way to attach additional behavior to a class in runtime.</p>
  
  <p>EDIT 2: Java is not an option, because some devices I'd like to port it to don't support java.</p>