Matching std::wstring in googlemocks EXPECT_CALL
<p>I have the mocked interface</p>

<pre><code>// Interface
class MyInterface
{
    void get(const std::wstring&amp; param) = 0;
}

// Mock interface
class MyInterfaceMock : public MyInterface
{
    MOCK_METHOD1(get, void(const std::wstring&amp; param));
}
</code></pre>

<p>Exemplaric test method:</p>

<pre><code>...
EXPECT_CALL(myInterfaceMock, L"hello");
</code></pre>

<p>When I compile it (vs2015) I get the message </p>

<p>error C2664: 'testing::internal::MockSpec...: cannot convert argument 1 from 'const wchar_t [6]' to 'const testing::Matcher &amp;'</p>

<p>followed by the message:
Reason: cannot convert from 'const wchar_t [7]' to 'const testing::Matcher'</p>

<p>When I use std::string instead std::wstring the everything works fine. Does anybody know why the std::wstring cannot be matched?</p>