Candidate template ignored: could not match 'const type-parameter-0-0 *' against 'char'
<p>I want to make my own library and I have some problems with template function's.</p>

<p>main.cpp</p>

<pre><code>#include &lt;iostream&gt;
#include "SMKLibrary.h"

int main() {
    char a[5] = {"ASFD"};

    array_print(a,5);

    return 0;
}
</code></pre>

<p>SMKLibrary.h</p>

<pre><code>#ifndef SMKLIBRARY_H
#define SMKLIBRARY_H

#include &lt;iostream&gt;

template &lt;typename T&gt;
void array_print(const T * array[], int size);

#endif
</code></pre>

<p>SMKLibrary.cpp</p>

<pre><code>#include "SMKLibrary.h"

template &lt;typename T&gt;
void array_print(const T * array[], int size) {
    int last = size - 1;
    for (int i = 0; i &lt; last; i++) {
        std::cout &lt;&lt; array[i] &lt;&lt; " ";
    }
    std::cout &lt;&lt; array[last] &lt;&lt; std::endl;
}
</code></pre>

<p>Can someone explain to me why I have this error?</p>