のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

Visual Studio 2017

C2338 Test writer must define specialization of ToString<const Q& q> for your class

unsigned shortがあると、このエラーになる。 C2338 Test writer must define specialization of ToString<const Q& q> for your class class std::basic_string<wchar_t,struct std::char_traits<wchar_t>, class std::allocator<wchar_t> > __cdecl Microsoft::VisualStudio::CppUnitTestFramework ::ToString<unsigned short>(const un…</unsigned></wchar_t></wchar_t,struct></const>