Error(s) is from file located in:
include\sfml\system\vector2.inl
I use:
Visual Studio Community 2017 15.9.21
SFML 2.5.1
ISO C++ 17 "Latest Draft Standard"
Release x64
SFML_STATIC
static library project
precompiled headers: disabled
Additional Dependencies:
sfml-window-s.lib
sfml-graphics-s.lib
sfml-system-s.lib
opengl32.lib
freetype.lib
winmm.lib
gdi32.lib
flac.lib
vorbisenc.lib
vorbisfile.lib
vorbis.lib
ogg.lib
ws2_32.lib
sfml-main.lib
I tried (still the same error):
ISO C++ 14
Visual Studio Community 2017 15.9.19
VS Output:
1>------ Build started: Project: JQCore, Configuration: Release x64 ------
1>s:\.c++\jqcore\jqcore\include\sfml\system\vector2.inl(29): error C2665: 'sf::Vector2<float>::Vector2': none of the 4 overloads could convert all the argument types
1>s:\.c++\jqcore\jqcore\include\sfml\system\vector2.hpp(77): note: could be 'sf::Vector2<float>::Vector2(sf::Vector2<float> &&)'
1>s:\.c++\jqcore\jqcore\include\sfml\system\vector2.hpp(77): note: or 'sf::Vector2<float>::Vector2(const sf::Vector2<float> &)'
1>s:\.c++\jqcore\jqcore\include\sfml\system\vector2.hpp(56): note: or 'sf::Vector2<float>::Vector2(T,T)'
1> with
1> [
1> T=float
1> ]
1>s:\.c++\jqcore\jqcore\include\sfml\system\vector2.hpp(47): note: or 'sf::Vector2<float>::Vector2(void)'
1>s:\.c++\jqcore\jqcore\include\sfml\system\vector2.inl(31): note: while trying to match the argument list '(int)'
1>s:\.c++\jqcore\jqcore\include\sfml\system\vector2.inl(28): note: while compiling class template member function 'sf::Vector2<sf::Vector2f>::Vector2(void)'
1>s:\.c++\jqcore\jqcore\app\source\jqtextbox.cpp(12): note: see reference to function template instantiation 'sf::Vector2<sf::Vector2f>::Vector2(void)' being compiled
1>s:\.c++\jqcore\jqcore\app\jqtextbox.hpp(198): note: see reference to class template instantiation 'sf::Vector2<sf::Vector2f>' being compiled
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.16.27023\include\filesystem(2392): note: see reference to class template instantiation 'std::chrono::time_point<std::filesystem::_File_time_clock,std::filesystem::_File_time_clock::duration>' being compiled
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.16.27023\include\type_traits(616): note: see reference to class template instantiation 'std::basic_string_view<wchar_t,std::char_traits<wchar_t>>' being compiled
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.16.27023\include\xstring(2122): note: see reference to class template instantiation 'std::is_convertible<const _StringViewIsh &,std::basic_string_view<wchar_t,std::char_traits<wchar_t>>>' being compiled
1> with
1> [
1> _StringViewIsh=const wchar_t *
1> ]
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.16.27023\include\xstring(2122): note: see reference to variable template 'const bool conjunction_v<std::is_convertible<wchar_t const * const &,std::basic_string_view<wchar_t,std::char_traits<wchar_t> > >,std::negation<std::is_convertible<wchar_t const * const &,wchar_t const *> > >' being compiled
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.16.27023\include\xstring(2281): note: see reference to alias template instantiation 'std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t>>::_Is_string_view_ish<_StringViewIsh>' being compiled
1> with
1> [
1> _StringViewIsh=const wchar_t *
1> ]
1>s:\.c++\jqcore\jqcore\include\sfml\system\vector2.inl(30): error C2665: 'sf::Vector2<float>::Vector2': none of the 4 overloads could convert all the argument types
1>s:\.c++\jqcore\jqcore\include\sfml\system\vector2.hpp(77): note: could be 'sf::Vector2<float>::Vector2(sf::Vector2<float> &&)'
1>s:\.c++\jqcore\jqcore\include\sfml\system\vector2.hpp(77): note: or 'sf::Vector2<float>::Vector2(const sf::Vector2<float> &)'
1>s:\.c++\jqcore\jqcore\include\sfml\system\vector2.hpp(56): note: or 'sf::Vector2<float>::Vector2(T,T)'
1> with
1> [
1> T=float
1> ]
1>s:\.c++\jqcore\jqcore\include\sfml\system\vector2.hpp(47): note: or 'sf::Vector2<float>::Vector2(void)'
1>s:\.c++\jqcore\jqcore\include\sfml\system\vector2.inl(31): note: while trying to match the argument list '(int)'
1>Done building project "JQCore.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========