title: uint8_t can't be printed with cout
body: <p>I have a weird problem about working with integers in C++.</p>
  
  <p>I wrote a simple program that sets a value to a variable and then prints it, but it is not working as expected.</p>
  
  <p>My program has only two lines of code:</p>
  
  <pre><code>uint8_t aa = 5;
  
  cout &lt;&lt; "value is " &lt;&lt; aa &lt;&lt; endl;
  </code></pre>
  
  <p>The output of this program is <code>value is</code></p>
  
  <p>I.e., it prints blank for <code>aa</code>.</p>
  
  <p>When I change <code>uint8_t</code> to <code>uint16_t</code> the above code works like a charm.</p>
  
  <p>I use Ubuntu&nbsp;12.04 (Precise Pangolin), 64-bit, and my compiler version is:</p>
  
  <pre><code>gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  </code></pre>