namespace troubles with enums
<p>Having a problem using enumerations with namespaces.</p>

<p>Below is the function call:   </p>

<pre><code>object-&gt;writeMessage(tmpZone-&gt;getLineOne(), tmpZone-&gt;getLine(), tmpZone-&gt;getPosition());
</code></pre>

<p>the problem from the compiler comes from</p>

<pre><code>tmpZone-&gt;getLine()
</code></pre>

<p>the prototype for getLine() from the Zone class(which is in the insight namespace)is:</p>

<pre><code>Line getLine();
</code></pre>

<p>which returns an enum type in the insight namespace. This function call is in a cpp file under a using namespace insight; line.</p>

<p>the compiler errors are</p>

<blockquote>
  <p>C:/WindRiver/workspace/SimpleTemplate/InsightLT.cpp: In static member
  function <code>static int
  insight::InsightLT::taskFunction(insight::InsightLT*)':
  C:/WindRiver/workspace/SimpleTemplate/InsightLT.cpp:161: error: no
  matching function for call to
  </code>insight::InsightLT::writeMessage(std::string, Line, int)'
  C:/WindRiver/workspace/SimpleTemplate/InsightLT.cpp:82: note:
  candidates are: void insight::InsightLT::writeMessage(std::string,
  insight::Line, int)</p>
</blockquote>

<p>I can't think of why this is happening. The Zone class is defined with in the insight namespace as well. Any ideas guys?</p>
