Trouble creating assert function
<p>This is my assert function (it wont compile "error C2110: '+' : cannot add two pointers"):</p>

<pre><code>#define CHAR(x) #x

template&lt;typename T&gt;
inline void ASSERT(T x)
{
    if(!x)
    {
        std::string s("ERROR! Assert " + CHAR(x) + " failed. In file " + __FILE__ +
                      " at line " + __LINE__ + ".");
            std::wstring temp(s.length(), L' ');
            std::copy(s.begin(), s.end(), temp.begin());
            getLogger().Write(temp);
        }
    }
</code></pre>

<p>Any idea of how to fix it?</p>
