title: Solve this Error ,while using 'export' keyword in templates?
body: <p>Program :main.cpp</p>
  
  <pre><code> struct X {
              int x;
             };
  
  export template &lt;class T&gt; T const&amp; min(T const&amp;, T const&amp;);
  
  int main() 
   {
    return min(2, 3);
   } 
  </code></pre>
  
  <p>x.cpp</p>
  
  <pre><code> struct X {
      int  x; 
       };
  
   export template &lt;class T&gt; T const&amp; min(T const &amp;a, T const &amp;b) {
   return a&lt;b ? a : b;
    } 
  </code></pre>
  
  <p>error:Compiling with gcc</p>
  
  <pre><code> export.cpp:23: warning: keyword ‘export’ not implemented, and will be ignored
   export.cpp: In function ‘int main()’:
   export.cpp:27: error: call of overloaded ‘min(int, int)’ is ambiguous
  
   swap.cpp:16: warning: keyword ‘export’ not implemented, and will be ignored
  </code></pre>
  
  <p>error: Compiling with EDG compiler</p>
  
  <pre><code>export.cpp", line 27: error: more than one instance of overloaded function    
  export.cpp", line 23: error: support for exported templates is disabled
  swap.cpp", line 16: error: support for exported templates is disabled
  </code></pre>
  
  <p>Can anyone solve this problem?</p>
  
  <p>Any one explain the usage of export keyword?</p>