title: Give specific options for a struct in C++
body: <p>I was attempting to create a struct in C++ that was a single Ternary digit. It is similiar to a bit but has three different values instead of two. Is there any way of limiting the options to -1, 0 or 1. Any help is appreciated.</p>
  <p>what I have so far is:</p>
  <pre><code>struct trit {
       char digit; // I dont just want a character. I only want either -1, 0 or 1
  };
  </code></pre>