title: C++ available "literal suffix code" for units
body: <p>C++1x supports literal suffixes (cmp. e.g. <a href="http://ecn.channel9.msdn.com/events/GoingNative12/GN12Cpp11Style.pdf" rel="nofollow">http://ecn.channel9.msdn.com/events/GoingNative12/GN12Cpp11Style.pdf</a>). I am using gcc 4.7 and want to introduce some units for our system. Most notably half of our code uses degrees and the other half radians (due to various 3rd party libraries), and obviously this is always a constant cause of mistakes. Being able to say e.g. "Radian angle = 90_deg;" would be so helpful.</p>
  
  <p>I've looked into how to implement this and it looks doable, however it will take some time to get everything right. So I wonder whether there is a finished/tested implementation out there that already implements all this that can be used (no need for every C++ developer to re-implement that, is there?). Aside from rad/deg I am looking for length measurements (mm, cm, m). I've already googled but did not find anything usable.</p>
  
  <p>Does anybody know an implementation of e.g. the SI system that can be used?</p>