A dot inside #define
<p>I have class like below</p>

<pre><code>#include &lt;iostream&gt;

#define Gb MemorySizeUnit.Gb
#define Mb MemorySizeUnit.Mb
#define Kb MemorySizeUnit.Kb

using namespace std;

enum MemorySizeUnit {Gb, Mb, Kb};

class Test
{
  private:
  MemorySizeUnit memSizeUnit;
  int memorySize;

  public:
  void setMemory(const int memSize, MemorySizeUnit unit);
 }
</code></pre>

<p>and i want to be able to do something like</p>

<pre><code>Test test;
test.setMemory(20, Gb);// as opposed to test.setMemory(20, MemorySizeUnit.Gb)
</code></pre>

<p>Compiler does not like that in #define, i have a "."</p>
