Category : visual-studio

I’m facing LNK2019 error: unresolved external symbol on some_container methods (including constructor and destructor) while trying to build my project. This comes from my template class: some_container.hpp #include <unordered_set> namespace name_space { template<typename T> class some_container { private: static std::unordered_set<T> some_set; public: some_container(); ~some_container(); static const bool insert(T item); } } some_container.cpp #include "some_container.hpp" using ..

Read more

I have a reasonably large project, when I update the C++/WinRT NuGet package I get the following problem: 1>C:Program Files (x86)Microsoft Visual Studio19CommunityVCToolsMSVC.29.30133includexsmf_control.h(137,33): error C2139: ‘winrt::ProjectName::ExistingClass’: an undefined class is not allowed as an argument to compiler intrinsic type trait ‘__is_trivially_destructible’ It seems to be caused by a wrong forward declaration. Any idea on how ..

Read more