c++ set null pointers?
<p>how would i set this to null;</p>

<pre><code>LookupTable&lt;Product *&gt; table;
</code></pre>

<p>everything i try says </p>

<p>1 IntelliSense: no suitable constructor exists to convert from "int" to "LookupTable"</p>

<p>Here is what Lookup table is:</p>

<pre><code>#ifndef LOOKUPTABLE_H
#define LOOKUPTABLE_H

#include &lt;iostream&gt;
#include &lt;string&gt;

using namespace std;

#define MAXRANGE 10

template &lt;class T&gt;
class LookupTable
{
private:
    T *aptr[MAXRANGE];
    int rangeStart[MAXRANGE];
    int rangeEnd[MAXRANGE];
    int numRanges;

public:
    T defaultValue;
    bool failedRangeCheck;
    std::string failReason;


    // Constructor
    LookupTable() 
    {   
        numRanges = 0; 
        defaultValue = T();
    }      

    void addRange(int start, int end)
    {
        std::cout &lt;&lt; "Created a new range...  Start: " &lt;&lt; start &lt;&lt; " / End: " &lt;&lt; end &lt;&lt; endl;
        failedRangeCheck = false;

        //lines omitted because not working anyway

        if ( !failedRangeCheck )
        {
            //set ranges
            rangeStart[numRanges] = start;
            rangeEnd[numRanges] = end;

            //build new generic array with end-start+1 positions
            //set pointer to point to it
            aptr[numRanges] = new T[ end - start + 1 ];
            numRanges++;
        }
        else
        {
            std::cout &lt;&lt; "Range overlapped another range." &lt;&lt; endl;
            std::cout &lt;&lt; failReason &lt;&lt; endl;
        }
    }

    T &amp;operator[](int value)     // Overloaded [] operator
    {
        for ( int i = 0; i &lt; numRanges; i++ )
        {
            if ( (value &gt;= rangeStart[i]) &amp;&amp; (value &lt;= rangeEnd[i]) )
            {
                return aptr[i][value - rangeStart[i]];
            }
        }

        return defaultValue;
    }

    ~LookupTable()
    {
         delete[] aptr;
         numRanges = 0;     
    }

};
#endif
</code></pre>
